aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
authorEzekiel Smith <ezekielsmith@protonmail.com>2022-04-01 21:03:14 +1000
committerGitHub <noreply@github.com>2022-04-01 21:03:14 +1000
commit382548e0a7106ce6b97accb320c7901499b00435 (patch)
tree067bbe65e289f72923dd90d31695e27bc3b7aaa4 /launcher/Application.cpp
parenta90fc3d7fe42bf68eff7ee865ae88b0ff5d5ad98 (diff)
parent59b3e30821bd20a3dc9e9fe4617ffa461f3a89b8 (diff)
downloadPrismLauncher-382548e0a7106ce6b97accb320c7901499b00435.tar.gz
PrismLauncher-382548e0a7106ce6b97accb320c7901499b00435.tar.bz2
PrismLauncher-382548e0a7106ce6b97accb320c7901499b00435.zip
Merge pull request #355 from dada513/flatpak_properly
Fix flatpak properly
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r--launcher/Application.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index e701acca..91b7b82c 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -1140,6 +1140,15 @@ std::vector<ITheme *> Application::getValidApplicationThemes()
return ret;
}
+bool Application::isFlatpak()
+{
+ #ifdef Q_OS_LINUX
+ return QFile::exists("/.flatpak-info");
+ #else
+ return false;
+ #endif
+}
+
void Application::setApplicationTheme(const QString& name, bool initial)
{
auto systemPalette = qApp->palette();