diff options
author | Itay Grudev <itay+github.com@grudev.com> | 2021-09-20 16:32:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 16:32:42 +0300 |
commit | cc96fea921f9467aecaecad03bb823a60142b46f (patch) | |
tree | f84e3e8ba34355bb40ce6e16d181abb64a9fb031 | |
parent | v3.3.1 (diff) | |
download | singleapplication-cc96fea921f9467aecaecad03bb823a60142b46f.tar.xz |
Update singleapplication_p.cpp
-rw-r--r-- | singleapplication_p.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index bce1c49..4568573 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -146,7 +146,7 @@ void SingleApplicationPrivate::genBlockServerName() if( ! (options & SingleApplication::Mode::ExcludeAppPath) ){ #ifdef Q_OS_WIN appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() ); -#else +#elseif defined(Q_OS_LINUX) // If the application is running as an AppImage then the APPIMAGE env var should be used // instead of applicationPath() as each instance is launched with its own executable path const QByteArray appImagePath = qgetenv( "APPIMAGE" ); @@ -154,7 +154,9 @@ void SingleApplicationPrivate::genBlockServerName() appData.addData( SingleApplication::app_t::applicationFilePath().toUtf8() ); } else { // Running as AppImage: Use absolute path to AppImage file appData.addData( appImagePath ); - } + }; +#else + appData.addData( SingleApplication::app_t::applicationFilePath().toUtf8() ); #endif } |