From: Angus Leeming Date: Mon, 10 Oct 2005 21:54:38 +0000 (+0000) Subject: Sync with LyX 1.3.x. X-Git-Tag: 1.6.10~13849 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=71f93a0674738d28d5737c5065c272e19bc7460b;p=lyx.git Sync with LyX 1.3.x. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10536 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/package.C.in b/src/support/package.C.in index c055ce541f..1ddcb1f4a4 100644 --- a/src/support/package.C.in +++ b/src/support/package.C.in @@ -584,15 +584,16 @@ get_user_support_dir(string const & default_user_support_dir, } -// $HOME/.lyx on all platforms but Win32 where it will be something like -// "C:/Documents and Settings/USERNAME/Application Data/lyx" +// $HOME/.lyx on POSIX but on Win32 it will be something like +// "C:/Documents and Settings/USERNAME/Application Data/LyX" string const get_default_user_support_dir(string const & home_dir) { #if defined (USE_WINDOWS_PACKAGING) (void)home_dir; // Silence warning about unused variable. + string const user_dir = (string(PACKAGE) == "lyx") ? "LyX" : PACKAGE; os::GetFolderPath win32_folder_path; - return AddPath(win32_folder_path(os::GetFolderPath::APPDATA), PACKAGE); + return AddPath(win32_folder_path(os::GetFolderPath::APPDATA), user_dir); #elif defined (USE_MACOSX_PACKAGING) (void)home_dir; // Silence warning about unused variable. @@ -611,7 +612,8 @@ string const get_default_user_support_dir(string const & home_dir) if (status_code != 0) return string(); - return AddPath(reinterpret_cast(store), PACKAGE); + string const user_dir = (string(PACKAGE) == "lyx") ? "LyX" : PACKAGE; + return AddPath(reinterpret_cast(store), user_dir); #else // USE_POSIX_PACKAGING return AddPath(home_dir, string(".") + PACKAGE);