aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/global
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-10-30 18:54:52 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-10-31 11:34:46 +0100
commit29d362a6e08f28ac48e737510a17ae7b3b717850 (patch)
tree3c13d4cfc5c3bc619daad3f7f32ef3d94c0bc84d /launcher/ui/pages/global
parentb4be28b9bb29609212b398a5f46ee4dbc400cf2d (diff)
downloadPrismLauncher-29d362a6e08f28ac48e737510a17ae7b3b717850.tar.gz
PrismLauncher-29d362a6e08f28ac48e737510a17ae7b3b717850.tar.bz2
PrismLauncher-29d362a6e08f28ac48e737510a17ae7b3b717850.zip
fix: do not trash instances in Flatpak
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/ui/pages/global')
-rw-r--r--launcher/ui/pages/global/LauncherPage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/ui/pages/global/LauncherPage.cpp b/launcher/ui/pages/global/LauncherPage.cpp
index 536ab22e..4ae7509c 100644
--- a/launcher/ui/pages/global/LauncherPage.cpp
+++ b/launcher/ui/pages/global/LauncherPage.cpp
@@ -49,6 +49,7 @@
#include <FileSystem.h>
#include "Application.h"
#include "BuildConfig.h"
+#include "DesktopServices.h"
#include "ui/themes/ITheme.h"
#include <QApplication>
@@ -143,7 +144,7 @@ void LauncherPage::on_instDirBrowseBtn_clicked()
ui->instDirTextBox->setText(cooked_dir);
}
}
- else if(APPLICATION->isFlatpak() && raw_dir.startsWith("/run/user"))
+ else if(DesktopServices::isFlatpak() && raw_dir.startsWith("/run/user"))
{
QMessageBox warning;
warning.setText(tr("You're trying to specify an instance folder "