mirror of
https://github.com/itay-grudev/SingleApplication.git
synced 2024-11-15 12:15:43 +08:00
Use QByteArray instead of QString
Co-authored-by: Hennadii Chernyshchyk <genaloner@gmail.com>
This commit is contained in:
parent
f030b378f0
commit
7d366c7e83
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user