Skip to content

Commit

Permalink
Merge pull request #2 from guihkx/add-flatpak-support
Browse files Browse the repository at this point in the history
Recognize Flatpak apps as "native"
  • Loading branch information
horsicq authored Feb 12, 2024
2 parents 616e1ad + acb3e69 commit 7e3f943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ bool XOptions::checkNative(const QString &sIniFileName)
QString sApplicationDirPath = qApp->applicationDirPath();

if ((sApplicationDirPath == "/bin") || (sApplicationDirPath == "/usr/bin") || (sApplicationDirPath == "/usr/local/bin") ||
(sApplicationDirPath.contains("/usr/local/bin$")) || isAppImage()) {
(sApplicationDirPath == "/app/bin") || (sApplicationDirPath.contains("/usr/local/bin$")) || isAppImage()) {
bResult = true;
} else {
bResult = false;
Expand Down

0 comments on commit 7e3f943

Please sign in to comment.