fixing translation path for snap packages

This commit is contained in:
Simon Stürz 2017-09-14 11:09:32 +02:00 committed by Michael Zanetti
parent d74f208a30
commit 028b21fcb8

View File

@ -227,7 +227,7 @@ QString GuhSettings::settingsPath()
QString GuhSettings::translationsPath() QString GuhSettings::translationsPath()
{ {
#ifdef SNAPPY #ifdef SNAPPY
return QString(qgetenv("SNAP_DATA")); return QString(qgetenv("SNAP") + "/usr/share/guh/translations");
#else #else
return QString("/usr/share/guh/translations"); return QString("/usr/share/guh/translations");
#endif // SNAPPY #endif // SNAPPY