diff options
Diffstat (limited to 'launcher/Flatpak.cpp')
-rw-r--r-- | launcher/Flatpak.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/launcher/Flatpak.cpp b/launcher/Flatpak.cpp new file mode 100644 index 00000000..8b61f903 --- /dev/null +++ b/launcher/Flatpak.cpp @@ -0,0 +1,14 @@ +#include <QFileInfo> + +namespace Flatpak +{ + bool IsFlatpak() + { + #ifdef Q_OS_LINUX + QFileInfo check_file("/.flatpak-info"); + return check_file.exists(); + #else + return false; + #endif + } +} |