Komodo file locations

Posted by toddw on 2007-02-16 11:33
OS: All / Any | Product: Komodo | tags: error logging

Where can I find the Komodo files?


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 8"):

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

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 Vista, Windows 7, Windows 8 or newer
  • Windows XP or older
    C:\Documents and Settings\<username>\Local Settings\Application Data\ActiveState\Komodo[IDE|Edit]\<version>
  • Linux
  • 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:

The location of this directory can be overridden using the KOMODO_USERDATADIR environment variable, see:

Where does Komodo log output and errors?

Note: In Komodo 6, you can use the "Help->Trouble Shooting->View log file" menu command to quickly examine Komodo's main log file ("pystderr.log").

There are two files named "pystderr.log" and "pystdout.log" within your Komodo user data directory. These files are extremely useful for troubleshooting problems with Komodo and are often requested when logging bug reports.

  • Windows Vista, Windows 7, Windows 8 or newer
  • Windows XP or older
    C:\Documents and Settings\<username>\Local Settings\Application Data\ActiveState\Komodo[IDE|Edit]\<version>\pystd[err|out].log
  • Linux
  • Mac OS X
    /Users/<user>/Library/Application Support/Komodo[IDE|Edit]/<version>/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 also use a completely different Komodo user data directory, see below.

How can I change Komodo's profile storage location

You can use a completely custom Komodo user data (profile) directory by setting the KOMODO_USERDATADIR variable in your environment settings before starting Komodo.

export KOMODO_USERDATADIR=/tmp/komodoide

dafi | Mon, 2008-07-28 09: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"]
    .get("PrefD", Components.interfaces.nsILocalFile)


Tested under Linux and Windows

Enhance KomodoEdit with MoreKomodo

jbarclay | Mon, 2009-09-14 18:56

to get to the log files via the windows explorer interface on Vista, you need to enter the path since the "AppData" directory is not visible by default. This fooled me into thinking the log files weren't written on startup.


tuckerj | Fri, 2009-10-23 14:20

when i install komodo edit 5.2.0 and then try to open the application I receive the following "Failed to open register key Software\MicroSoft\Windows\CurrentVersion\Explorer\Shell Folders" has anyone else seen this error. I running Vista Home Premium version 6.0.6002 Service Pack 2 6002

sridharr | Fri, 2010-10-29 09:48

Of late I am getting errors with partial update on Windows. Is there a separate log file for the update component, or is it the same pystderr.log?

ActiveState Staff
Fri, 2010-10-29 12:32

There are separate Mozilla log components for auto update (you'll need to set these through "about:config" or through the Komodo pref file).

user_pref("app.update.log.Checker", true);
user_pref("app.update.log.Downloader", true);
user_pref("app.update.log.General", true);
user_pref("app.update.log.UI:CheckingPage", true);
user_pref("app.update.log.UI:DownloadingPage", true);
user_pref("app.update.log.UI:LicensePage", true);
user_pref("app.update.log.UpdateManager", true);
user_pref("app.update.log.UpdateService", true);

I read somewhere that you can set:
user_pref("app.update.log", true);

and it works for all logs - though not sure if that works for Komodo 6's Mozilla version (1.9.1).

These logs go the JavaScript Error Console I believe:


timmmm | Tue, 2012-10-09 06:19

There's a very annoying bug which causes komodo edit to forget per file settings. It would be nice to know where it stores this information so I can debug it...

Edit: Never mind it is in doc-state.xmlc

danielk | Sun, 2014-07-20 00:18

On Windows XP (32-bit) Komodo Edit installs its own templates in its extensions directory:

C:\Program Files\ActiveState Komodo Edit 8\lib\mozilla\extensions\

The format is as follows:


E.g. one template file for HTML:

C:\Program Files\ActiveState Komodo Edit 8\lib\mozilla\extensions\

You can edit these templates and they will take effect the next time you create a document from a template. There are some fields that get used by Komodo within the files such as [[%tabstop:Page Title]] to instruct Komodo to use the text as a tab stop.

If you want to change the default character encoding go to Edit -> Preferences -> Internationalization -> Default Editor Encoding and use the option "Custom encoding" to change it to, for example, UTF-8 instead of Windows XP's default of cp1252. The character encoding can also be changed on a per-language basis.