aboutsummaryrefslogtreecommitdiff
path: root/launcher/Application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/Application.cpp')
-rw-r--r--launcher/Application.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index e701acca..af1cfe85 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -1140,6 +1140,16 @@ std::vector<ITheme *> Application::getValidApplicationThemes()
return ret;
}
+bool Application::isFlatpak()
+{
+ #ifdef Q_OS_LINUX
+ QFileInfo check_file("/.flatpak-info");
+ return check_file.exists();
+ #else
+ return false;
+ #endif
+}
+
void Application::setApplicationTheme(const QString& name, bool initial)
{
auto systemPalette = qApp->palette();