Like Mozilla and Firefox do, K-Meleon should save its profiles in Windows' Application Data directory so that it supports true multi-user setup.

The appdata dir is located in, for Win9x:
C:\WINDOWS\Profiles\USERNAME\Application Data
and for WinNT:
C:\Documents and Settings\USERNAME\Application Data

Info from the Forums :
it appears that SHGetFolderPath can be used to request, and create if it doesn't exist, the CSIDL_APPDATA folder (c:\documents and settings\<user>\ Application Data\ on Nt, 2000, & XP, likely c:\windows\Application Data\ on 9x and ME). See http://www.google.com/search?q=SHGetFolderPath

Note:
This is related to the "allow regular users to run admin-installed K-Meleon" bugs ( bug 370, bug 384, and bug 739) and may even be a dupe, since the solution for those bugs would probably involve fixing this one as well.

Comments

kko 2005-08-25 03:18:57

In addition to that, users should still have the possibility to override the default profile location. Doing this with an .ini file instead of a command line switch, would have two major benefits:

1) To override the default location, users would have to change a single .ini file entry instead of several registry keys and file system shortcuts.
2) It would finally work together with the loader.