GNOME Bugzilla – Bug 171171
choose a better directory for user data on Win32
Last modified: 2012-10-10 22:22:32 UTC
Distribution/Version: Windows XP installation
hello, that is not a bug, I hope that is not the wrong place for this report. Every application under windows place his config-data under the directory x:\documents and settings\<username>\application data\<application> but gimp place his data under x:\documents and settings\<username>\.gimp-2.2 that´s a little parasitic *g and discommoding when I make a backup of my config files. I can change the place where gimp watch for brushes, patterns, palettes and so on but I can´t change the directory for many other files. Also I would find it very discommoding when I have to change all these directorys after installation per hand. It would be very fine when you can change this flaw.
You can change the location of the personal directory by setting the GIMP2_DIRECTORY environment variable.
Perhaps gimp_directory() should use g_get_user_config_dir() on Win32.
where can I find the GIMP2_DIRECTORY variable?
http://support.microsoft.com/kb/310519/de
Are you a German or knew you that I am so? In any case it works really good, thank you very much.
I think Mitch has a point in comment #3. Michael Schumacher, what do you think about this proposal? Should we do this for GIMP 2.4? Change libgimpthumb as well?!
*** Bug 315967 has been marked as a duplicate of this bug. ***
I don't think that moving the .gimp directory into AppData is the ultimate solution. There are some dirs a user should be able to access, and AppData (being hidden by default) is even a bit harder to get to than the profile directory. I'd like to see a platform-independent proposal which splits .gimp into a user-visible part (for brushes, scripts, patterns, ...) and an invisible part (gimprc etc). The latter could go into AppData on Windows, but for the moment I'd hesitate to just change the default location.
I am not sure that gimprc is the best example of a file to be hidden. Some strange config options may not be visible in the Preferences dialog but can still be edited in gimprc. On the other hand, things such as the sessionrc or parasiterc could be hidden from the user.
I agree with Michael and that is also what I have discussed with the guys from the Create project. GIMP should only store its configuration files in the hidden dot directory. Resource files should be in a user-visible directory and preferably be shared with other applications. Since this is probably too much of a change for GIMP 2.4, we should look at the simpler proposals that have been made in this bug report.
It is getting late for a change. If someone understands this issue, it would be nice to get a short summary and a suggestion for changes. Otherwise we will have to move this to the 2.6 milestone.
Moving to 2.6 because noone came up with a decent proposal yet.
Discussion about the same can be found in bug 164075 – Location of settings folder not well chosen for Windows GIMP and bug 335342 – User files are installed to the wrong folder.
Without a real driving force behind this change, this bug report just adds noise to specific milestone lists. Putting on the Future milestone list.
*** Bug 572231 has been marked as a duplicate of this bug. ***
I have just submitted a patch on Bug166643 and believe it should basically satisfy this bug report. For Windows, as verified on current Glib development code (2.34.0), the used directory will be CSIDL_LOCAL_APPDATA. According to Microsoft documentation found on the web, it would usually correspond to: C:\Documents and Settings\{username}\Local Settings\Application Data\ It does not deal with data separation though (like brushes, scripts, patterns, etc.), as I read has been discussed above. But I would say that's a first step. Also I agree that these data could be in a different folder, and even shared, as discussed (for instance GIMP and Mypaint could use the same brushes, etc. Though I have no idea if they use the same brush format). But I don't think the data dir should be visible. Most casual users care as much about brushes, scripts, etc. as the configuration (= nearly not at all); and they probably certainly don't want to see a directory in the middle of their home directory, dedicated to GIMP data. Power users, those who care about these data, would anyway search for these on the web, the docs, etc. So they would know where to find this directory and add/remove data in it. So it should be hidden. Moreover checking all conventions, it is a hidden dir in XDG ($XDG_DATA_HOME), in Windows (LocalAppDataFolder), and in OSX (Library dir). I don't think we should go against all these standards.
Bug 166643 has a patch in progress that is going to fix this problem too, resolving as duplicate. *** This bug has been marked as a duplicate of bug 166643 ***