aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
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();