Move flatpak utils into common

This commit is contained in:
Patrick Nicolas
2024-11-07 19:41:33 +01:00
parent 4123b35175
commit 19a399640a
12 changed files with 69 additions and 67 deletions
+3 -1
View File
@@ -18,6 +18,8 @@
#include "adb.h"
#include "utils/flatpak.h"
#include <QDebug>
#include <QProcess>
#include <chrono>
@@ -31,7 +33,7 @@ std::unique_ptr<QProcess> escape_sandbox(const std::string & executable, Args &&
auto process = std::make_unique<QProcess>();
QStringList args;
if (std::filesystem::exists("/.flatpak-info"))
if (wivrn::is_flatpak())
{
process->setProgram("flatpak-spawn");
args.push_back("--host");