Multiple instances of Komodo

Posted by toddw on 2007-11-28 11:14
OS: All / Any | Product: Komodo | tags: multiple instance
Question: 

Can I run more than one instance of Komodo?

Answer: 

In Komodo 5, you can use "Window->New Window" to create another Komodo window.
In Komodo 6 and higher, you can use "File->New->New Window".

It is also possible to run a completely separate Komodo instance on Mac and Linux, though not on Windows. This does not work on Windows because the Windows Komodo build uses a different locking mechanism, which is a kernel lock specific to the application name and version.

By default Komodo will not allow you to have two instances of Komodo running at once, this is because the Komodo profile directory cannot support multiple instances. You can get around this profile directory limitation by using a separate profile directory for the second instance!

You can use a custom profile directory by simply setting the KOMODO_USERDATADIR environment variable. If you set a different value to this variable for every subsequent komodo session you want to run, then you'll be able to have multiple komodo sessions running.

Example to run two different Komodo sessions on Linux/Mac:

# export KOMODO_USERDATADIR=/home/toddw/.komodoide_session1
# komodo
# export KOMODO_USERDATADIR=/home/toddw/.komodoide_session2
# komodo

Note: You do not need to use a separate KOMODO_USERDATADIR setting for the default (first) instance, it will use the Komodo default setting if not supplied. The default location details are here:
http://community.activestate.com/faq/komodo-file-locations#appdata_dir

Now, the problem with this is that there is no shared information between the two sessions. Your toolbox changes, session state, preferences, code intelligence, etc... will only ever be seen by the same/one Komodo instance, similar to how the Firefox bookmarks, session and preferences are separated between Firefox profiles.

Cheers,
Todd

euphonek | Wed, 2009-02-11 16:39

**UPDATE: Never mind, I had JUST installed version 5 and had not even worked with it yet, but it appears that multiple windows IS NOW AVAILABLE! Just right-click on a tab and select "Open in a New Window"! Hooray!

ORIGINAL COMMENT:
#######################################################################
This is something I've been hoping for (please! please!), but for those looking for a limited workaround -

I found it quite interesting that when I installed the new version of Edit (version 5.0), that my prior version (4.4) still worked, and I could open them both at the same time.

I know this is not the true functionality, but since I have them both installed I'll just setup separate shortcuts for them and whenever I need 2 Komodo windows I will use the old version.

It makes me wonder though...if THIS is possible, why wouldn't it be possible to have 2 installations of a single version that would allow you to open it twice?

- EK
#######################################################################