Attempt flatpak-spawn if permission is granted

This commit is contained in:
Patrick Nicolas
2024-11-07 19:41:35 +01:00
parent 19a399640a
commit 7983745317
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ std::unique_ptr<QProcess> escape_sandbox(const std::string & executable, Args &&
auto process = std::make_unique<QProcess>();
QStringList args;
if (wivrn::is_flatpak())
if (wivrn::flatpak_key("org.freedesktop.Flatpak") == "talk")
{
process->setProgram("flatpak-spawn");
args.push_back("--host");
+1 -1
View File
@@ -35,7 +35,7 @@ std::string read_vr_manifest()
std::filesystem::path vrmanifest = std::string{home ? home : ""} + "/.steam/steam/config/steamapps.vrmanifest";
if (wivrn::is_flatpak())
if (wivrn::flatpak_key("org.freedesktop.Flatpak") == "talk")
{
QProcess flatpak_spawn;
flatpak_spawn.start("flatpak-spawn", {"--host", "cat", QString::fromStdString(vrmanifest)});
+1 -1
View File
@@ -235,7 +235,7 @@ int wivrn::exec_application(configuration config)
std::string executable;
std::vector<std::string> args;
if (is_flatpak())
if (flatpak_key("org.freedesktop.Flatpak") == "talk")
{
executable = "flatpak-spawn";
args.push_back("flatpak-spawn");