From 3a7eeff135f92c807fdc066cb06d835f295b66d3 Mon Sep 17 00:00:00 2001 From: dada513 Date: Mon, 28 Mar 2022 20:55:03 +0200 Subject: Fix --- launcher/Application.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'launcher/Application.cpp') diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 33b1774c..abdfc06d 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -1139,6 +1139,16 @@ std::vector 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(); -- cgit From 59b3e30821bd20a3dc9e9fe4617ffa461f3a89b8 Mon Sep 17 00:00:00 2001 From: dada513 Date: Thu, 31 Mar 2022 16:11:04 +0200 Subject: Scrumplex moment --- launcher/Application.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'launcher/Application.cpp') diff --git a/launcher/Application.cpp b/launcher/Application.cpp index af1cfe85..91b7b82c 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -1143,8 +1143,7 @@ std::vector Application::getValidApplicationThemes() bool Application::isFlatpak() { #ifdef Q_OS_LINUX - QFileInfo check_file("/.flatpak-info"); - return check_file.exists(); + return QFile::exists("/.flatpak-info"); #else return false; #endif -- cgit