Skip to content

Commit

Permalink
Fix access of AppImage conf using relative path access
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Nov 17, 2020
1 parent 8a060ee commit 40209a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ QString savePath(const QString &file, bool exists, bool writable)
if (validSavePath(QDir::homePath() + "/.Grabber/" + check, writable)) {
return QDir::toNativeSeparators(QDir::homePath() + "/.Grabber/" + file);
}
if (validSavePath(qApp->applicationDirPath() + "/../share/Grabber/" + check, writable)) {
return QDir::toNativeSeparators(qApp->applicationDirPath() + "/../share/Grabber/" + file);
}
if (validSavePath(QString(PREFIX) + "/share/Grabber/" + check, writable)) {
return QDir::toNativeSeparators(QString(PREFIX) + "/share/Grabber/" + file);
}
Expand Down

0 comments on commit 40209a2

Please sign in to comment.