mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Use qEnvironmentVariable where appropriate
This commit is contained in:
@@ -253,7 +253,7 @@ QString EscapeShellInLauncher(const QString &content) {
|
||||
QString FlatpakID() {
|
||||
static const auto Result = [] {
|
||||
if (!qEnvironmentVariableIsEmpty("FLATPAK_ID")) {
|
||||
return QString::fromLatin1(qgetenv("FLATPAK_ID"));
|
||||
return qEnvironmentVariable("FLATPAK_ID");
|
||||
} else {
|
||||
return GetLauncherBasename();
|
||||
}
|
||||
|
Reference in New Issue
Block a user