ActiveState Powered by ActiveState

ActiveState Community


Komodo file locations

Posted by ToddW on 2007-02-16 12:33
OS: All / Any | Product: Komodo | tags: error logging
Question:

Where can I find the Komodo files?

Answer:

Where is Komodo installed?

The default location varies by platform, and the name of the directory corresponds to the version of Komodo you are running ("IDE" or "Edit" plus the version number - e.g. "Komodo IDE 4"):

Windows:
C:\Program Files\ActiveState Komodo [IDE|Edit] <version>\

Linux
/opt/Komodo-[IDE|Edit]-<version>/

OS X
/Applications/Komodo-[IDE|Edit]-<version>.app

Where does Komodo keep settings data?

Komodo stores preferences, macros, templates, keybinding schemes and other settings in a user-specific directory called the user data directory. The name and location of this directory varies depending on the operating system and Komodo version:

Windows 2000 and XP:
C:\Documents and Settings\<username>\Application Data\ActiveState\Komodo[IDE|Edit]\<version>

Windows Vista:
C:\Users\<user>\AppData\Roaming\ActiveState\Komodo[IDE|Edit]\<version>

Linux
/home/<user>/.komodo[ide|edit]/<version>

Mac OS X
/Users/<user>/Library/Application Support/Komodo[IDE|Edit]/<version>

You can find more details about the contents of the profile directory here:
http://community.activestate.com/faq/komodo-profile-structure

The location of this directory can be overridden using the KOMODO_USERDATADIR environment variable, see:
http://community.activestate.com/faq/multiple-instances-komodo

Where does Komodo log output and errors?

There are two files "pystderr.log" and "pystdout.log".

Within the user data directory is the host data directory (host-<hostname>). These files are extremely useful for troubleshooting problems with Komodo and are often requested when logging bug reports.

Windows 2000 and XP:
C:\Documents and Settings\<username>\Application Data\ActiveState\Komodo[IDE|Edit]\<version>\host-<hostname>\pystd[err|out].log

Windows Vista:
C:\Users\<user>\AppData\Roaming\ActiveState\Komodo[IDE|Edit]\<version>\host-<hostname>\pystd[err|out].log

Linux
/home/<user>/.komodo[ide|edit]/<version>\host-<hostname>\pystd[err|out].log

Mac OS X
/Users/<user>/Library/Application Support/Komodo[IDE|Edit]/<version>\host-<hostname>\pystd[err|out].log

How do I reset Komodo's preferences to the default settings?

Warning: This will reset a lot of preference information, including opened files, recent files, projects and toolbox, additional installed extensions, customized Komodo preferences, etc... So make sure you backup the folder instead of simply deleting it, this way you can easily restore your settings.

Your preferences should be reset.

Note 1: If you have older Komodo preferences from before Komodo 4.0, these will be applied on-top of the default preferences as part of a Komodo upgrade process, so for a total default/fresh set of preferences you will need to rename the older komodo directory as well.

Note 2: You can use a completely custom Komodo user data directory by setting the KOMODO_USERDATADIR environment variable. I.e. export KOMODO_USERDATADIR=/tmp/komodoide41

dafi | Mon, 2008-07-28 10:23

The code shown below if executed as macro shows userdata directory into the file manager

var currProfPath = Components.classes["@mozilla.org/file/directory_service;1"]
    .getService(Components.interfaces.nsIProperties)
    .get("PrefD", Components.interfaces.nsILocalFile)
    .path

Components.classes["@activestate.com/koSysUtils;1"]
    .getService(Components.interfaces.koISysUtils)
    .ShowFileInFileManager(currProfPath);

Tested under Linux and Windows

--
dafi
Enhance KomodoEdit with MoreKomodo

-->