Use QByteArray instead of QString

Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
This commit is contained in:
Michael Klein 2021-09-20 14:56:31 +02:00 committed by GitHub
parent f030b378f0
commit 7d366c7e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() );