Angus Leeming wrote:
>> It would also be nice if you compiled the sources with
>> --with-version-suffix (which helps people who switch between 1.4 and
>> 1.3).
>
> Hmmmmm. The problem here is the LyX User directory only, no?
> C:\Documents and Settings\Angus\Application Data\LyX
> Why don't we use
>
> 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;
> GetFolderPath win32_folder_path;
> return AddPath(win32_folder_path(GetFolderPath::APPDATA),
> - user_dir);
> + user_dir + '_' + VERSION);
> #elif defined (USE_MACOSX_PACKAGING)
Or rather
string const user_dir =
string(PACKAGE) == "lyx" ?
string("LyX") + '_' + VERSION : PACKAGE;
GetFolderPath win32_folder_path;
return AddPath(win32_folder_path(GetFolderPath::APPDATA),
user_dir);
> which would give us
> C:\Documents and Settings\Angus\Application Data\LyX_1.3.7
>
> Jean-Marc?
--
Angus