29 lines
594 B
Plaintext
29 lines
594 B
Plaintext
Upstream commit 2d6b2d3c036f44a5c2a9e58321364c210401ff12
|
|
|
|
Index: src/common/utility_unix.cpp
|
|
--- src/common/utility_unix.cpp.orig
|
|
+++ src/common/utility_unix.cpp
|
|
@@ -111,18 +111,20 @@ void Utility::setLaunchOnStartup(const QString &appNam
|
|
}
|
|
}
|
|
|
|
-#ifdef Q_OS_LINUX
|
|
QString Utility::appImageLocation()
|
|
{
|
|
+#ifdef Q_OS_LINUX
|
|
static const auto value = qEnvironmentVariable("APPIMAGE");
|
|
return value;
|
|
+#else
|
|
+ return QString();
|
|
+#endif
|
|
}
|
|
|
|
bool Utility::runningInAppImage()
|
|
{
|
|
return !Utility::appImageLocation().isEmpty();
|
|
}
|
|
-#endif
|
|
|
|
bool Utility::hasDarkSystray()
|
|
{
|