aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klein <github@a98shuttle.de>2021-09-20 14:56:31 +0200
committerGitHub <noreply@github.com>2021-09-20 14:56:31 +0200
commit7d366c7e837a7ba45c0cfc9261ffbeb607055e3d (patch)
treed4018e1732d9007e6d26c23602e059affd4d28da
parentUse AppImage path for hash when running as AppImage. (diff)
downloadsingleapplication-7d366c7e837a7ba45c0cfc9261ffbeb607055e3d.tar.xz
Use QByteArray instead of QString
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
-rw-r--r--singleapplication_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/singleapplication_p.cpp b/singleapplication_p.cpp
index 6b4aa51..7c87973 100644
--- a/singleapplication_p.cpp
+++ b/singleapplication_p.cpp
@@ -147,7 +147,7 @@ void SingleApplicationPrivate::genBlockServerName()
#ifdef Q_OS_WIN
appData.addData( SingleApplication::app_t::applicationFilePath().toLower().toUtf8() );
#else
- QString appImagePath = qEnvironmentVariable( "APPIMAGE" );
+ const QByteArray appImagePath = qgetenv( "APPIMAGE" );
if ( appImagePath.isEmpty() ) {
// Not running as AppImage: use path to executable file
appData.addData( SingleApplication::app_t::applicationFilePath().toUtf8() );