mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bug 639322 part 3: provide users with a sensible first time "Save As..." path on Windows
While $HOME is fine on linux, on Windows the most sensible location is "My Documents" (or its translated equivalent). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20101 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
6fb1dd93ee
commit
19d75d552b
@ -183,7 +183,11 @@ gnc_get_default_directory (const gchar *gconf_section)
|
||||
|
||||
dir = gnc_gconf_get_string (gconf_section, KEY_LAST_PATH, NULL);
|
||||
if (!dir)
|
||||
#ifdef G_OS_WIN32
|
||||
dir = g_strdup (g_get_user_data_dir ()); /* equivalent of "My Documents" */
|
||||
#else
|
||||
dir = g_strdup (g_get_home_dir ());
|
||||
#endif
|
||||
|
||||
return dir;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user