use LyX instead of lyx for user directory on windows and osx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10215 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-07-15 15:57:10 +00:00
parent 79e075d410
commit 02e822110f
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-07-12 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* package.C (get_default_user_support_dir): for windows and osx
packaging, use "LyX" instead of "lyx" as subdirectory name.
2005-07-14 Angus Leeming <leeming@lyx.org>
* filetools.[Ch] (mangled_filename): backport the 1.4.x name mangling

View File

@ -589,7 +589,8 @@ string const get_default_user_support_dir(string const & home_dir)
#if defined (USE_WINDOWS_PACKAGING)
(void)home_dir; // Silence warning about unused variable.
return AddPath(win32_folder_path(CSIDL_APPDATA), PACKAGE);
string const user_dir = (string(PACKAGE) == "lyx") ? "LyX" : PACKAGE;
return AddPath(win32_folder_path(CSIDL_APPDATA), user_dir);
#elif defined (USE_MACOSX_PACKAGING)
(void)home_dir; // Silence warning about unused variable.
@ -608,7 +609,8 @@ string const get_default_user_support_dir(string const & home_dir)
if (status_code != 0)
return string();
return AddPath(reinterpret_cast<char const *>(store), PACKAGE);
string const user_dir = (string(PACKAGE) == "lyx") ? "LyX" : PACKAGE;
return AddPath(reinterpret_cast<char const *>(store), user_dir);
#else // USE_POSIX_PACKAGING
return AddPath(home_dir, string(".") + PACKAGE);