1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-27 14:17:45 +00:00

SDK Launcher: Fix launching under Flatpak

This commit is contained in:
Joshua Goins 2024-05-27 16:36:21 -04:00
parent f15049d6aa
commit 328bcb5572

View file

@ -66,10 +66,7 @@ MainWindow::MainWindow()
connect(appList, &QListWidget::itemClicked, [this](QListWidgetItem *item) {
if (applications.contains(item->text())) {
const QString exec = QStringLiteral("./") + applications[item->text()].second;
qDebug() << "Launching" << exec;
const QString exec = applications[item->text()].second;
QProcess::startDetached(exec, QStringList());
} else if (links.contains(item->text())) {
QDesktopServices::openUrl(QUrl::fromUserInput(links[item->text()]));