use QStandardPaths::GenericDataLocation instead of QStandardPaths::DataLocation to get common user_support_dir path for all LyX binaries (LyX, tex2lyx and lyxclient)

This commit is contained in:
Stephan Witt 2016-01-24 15:19:54 +01:00
parent 63974a9b6b
commit 3d00aef3ac

View File

@ -691,7 +691,7 @@ FileName const get_default_user_support_dir(FileName const & home_dir)
#elif defined (USE_MACOSX_PACKAGING) && (QT_VERSION >= 0x050000) #elif defined (USE_MACOSX_PACKAGING) && (QT_VERSION >= 0x050000)
(void)home_dir; // Silence warning about unused variable. (void)home_dir; // Silence warning about unused variable.
return FileName(addPath(fromqstr(QStandardPaths::writableLocation(QStandardPaths::DataLocation)), PACKAGE)); return FileName(addPath(fromqstr(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)), PACKAGE));
#elif defined (USE_MACOSX_PACKAGING) #elif defined (USE_MACOSX_PACKAGING)
(void)home_dir; // Silence warning about unused variable. (void)home_dir; // Silence warning about unused variable.