[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] New location for homedirectory?

From: Jonathan Kinsey
Subject: Re: [Bug-gnubg] New location for homedirectory?
Date: Fri, 20 Jun 2008 20:57:22 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080421 Thunderbird/ Mnenhy/

I've got no problem with having 2 variables, I'm not sure what would go in which directory though:

gnubg settings (gnubgautorc)
Rollout settings files
player records
sqldb file
user custom boards

which would go in the config dir and which in the data dir?


Christian Anthon wrote:
g_get_user_data_dir /home/anthon/.local/share
g_get_user_config_dir /home/anthon/.config

in accordance with the wording in the api and the document referenced
there. On windows data_dir uses CSIDL_PERSONAL where it should use
CSIDL_APPDATA. Perhaps we can do something like

#if WIN32
gnubg_config_dir = g_build_filename(g_get_user_config_dir(), "gnubg", "config");
gnubg_data_dir = g_build_filename(g_get_user_config_dir(), "gnubg", "data");
gnubg_config_dir = g_build_filename(g_get_user_config_dir(), "gnubg");
gnubg_data_dir = g_build_filename(g_get_user_datadir_dir(), "gnubg");


On Thu, Jun 19, 2008 at 11:23 PM, Jonathan Kinsey
<address@hidden> wrote:
I've doubled checked on windows and g_get_user_data_dir actually points to
the my documents folder (which is an ideal place to save matches), the
existing g_get_home_dir points to the base user directory which isn't the
place to put files.

So g_get_user_config_dir()/gnubg is the right place for the settings on

Where do these point to on Unix?


Christian Anthon wrote:
If you do that, I think we should distinguish between
g_get_user_data_dir and g_get_user_config_dir. Otherwise we pollute
the directory structure under unix.


On Thu, Jun 19, 2008 at 9:30 PM, Jonathan Kinsey <address@hidden>
On windows the settings files are currently being stored in the "my
documents" area, a better location is the "appdata" area.

This would mean changing the szHomeDirectory to be
(instead of g_get_home_dir()).  I'm not sure where this would point to in

If I make the change I'll change the copy rc function to copy any
files from the old location to the new.


Bug-gnubg mailing list

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]