Update singleapplication_p.cpp

This commit is contained in:
Itay Grudev 2021-09-20 16:38:28 +03:00 committed by GitHub
parent bca0b770ee
commit 9856adebd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ void SingleApplicationPrivate::genBlockServerName()
if( ! (options & SingleApplication::Mode::ExcludeAppPath) ){ if( ! (options & SingleApplication::Mode::ExcludeAppPath) ){
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() ); appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() );
#elseif defined(Q_OS_LINUX) #elif defined(Q_OS_LINUX)
// If the application is running as an AppImage then the APPIMAGE env var should be used // 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 // instead of applicationPath() as each instance is launched with its own executable path
const QByteArray appImagePath = qgetenv( "APPIMAGE" ); const QByteArray appImagePath = qgetenv( "APPIMAGE" );