diff options
author | Itay Grudev <itay+github.com@grudev.com> | 2021-09-20 16:22:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 16:22:02 +0300 |
commit | 6aa2d348e54ca6c6268e1fb55b0d623fd565b13c (patch) | |
tree | d4fd309e796ca08304681c6e58374496929eba19 | |
parent | Compile fix (diff) | |
download | singleapplication-6aa2d348e54ca6c6268e1fb55b0d623fd565b13c.tar.xz |
Style and explanation improvements
-rw-r--r-- | singleapplication_p.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp index d0e3e8d..bce1c49 100644 --- a/singleapplication_p.cpp +++ b/singleapplication_p.cpp @@ -147,12 +147,12 @@ void SingleApplicationPrivate::genBlockServerName() #ifdef Q_OS_WIN appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() ); #else + // 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" ); - if ( appImagePath.isEmpty() ) { - // Not running as AppImage: use path to executable file + if( appImagePath.isEmpty() ){ // Not running as AppImage: use path to executable file appData.addData( SingleApplication::app_t::applicationFilePath().toUtf8() ); - } else { - // Running as AppImage: Use absolute path to AppImage file + } else { // Running as AppImage: Use absolute path to AppImage file appData.addData( appImagePath ); } #endif |