[TR] - Many applications need to remember things about themselves, like GUI appearance, default values, last opened files and so on. Since [Tcl] is cross-platform, once a program is deployed on different platforms, you want to handle this point in different ways. There are several places, where you can or should store data. A short and simple procedure is described in: [Application-specific RC files]. I don't describe here, ''how'' you should store the data. This is dicussed in: [Techniques for reading and writing application configuration files]. ---- '''Unix''' User specific settings normally go in the home directory in a dotted file (or directory) like ... file join $env(HOME) .configFile GUI appearance is normally configured via the [option database]. The directory can be something like /usr/lib/X11/app-defaults/ but I am unsure, whether all Unix systems use this very directory. '''Windows''' Windows knows several places. First there is the same location as in Unix: file join $env(HOME) configFile.dat The ''$env(HOME)'' part seems always to be there, also when the HOME variable is not set in the autoexec.bat file (see: [HOMEPATH]). But is this true for all incarnations of Windows (95,98,ME,XP,2000, ...)? Then there is the registry. You don't seem to need to know the location of the registry, just use the [registry] package: package require registry Many programs just store their data along with the installation directory, often in the same directory as the executable. So you would need to know this location from inside the script. This depends on using a simple [script] or a [starkit] or another kind of wrapped application like [freewrap]. Here are some references: * [Determining the Applications Root Directory] '''Macintosh''' This might depend on the version of the [Mac OS] you have. Newer Tcl versions are [Mac OS X] only, but older applications may be for [MacOS Classic]. I don't konw about these, because I don't have a Mac. Can someone fill the information here? ---- [Category Deployment] | [Category Application]