diff --git a/flameshot.pro b/flameshot.pro index 65d7ea88..299aa1b9 100644 --- a/flameshot.pro +++ b/flameshot.pro @@ -207,6 +207,8 @@ unix:!macx { } } + DEFINES += APP_PREFIX=\\\"$$PREFIX\\\" + target.path = $${BASEDIR}$${PREFIX}/bin/ qmfile.path = $${BASEDIR}$${PREFIX}/share/flameshot/translations/ diff --git a/src/utils/pathinfo.cpp b/src/utils/pathinfo.cpp index a7d48f01..7a7719db 100644 --- a/src/utils/pathinfo.cpp +++ b/src/utils/pathinfo.cpp @@ -26,6 +26,7 @@ QStringList PathInfo::translations() { QString trPath = QDir::toNativeSeparators(binaryPath) + "translations"; #if defined(Q_OS_LINUX) return QStringList() + << QString(APP_PREFIX) + "/share/flameshot/translations" << trPath << "/usr/share/flameshot/translations" << "/usr/local/share/flameshot/translations";