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
+2 -1
View File
@@ -17,6 +17,7 @@
*/
#include "steam_app.h"
#include "utils/flatpak.h"
#include <QProcess>
#include <algorithm>
#include <cassert>
@@ -34,7 +35,7 @@ std::string read_vr_manifest()
std::filesystem::path vrmanifest = std::string{home ? home : ""} + "/.steam/steam/config/steamapps.vrmanifest";
if (std::filesystem::exists("/.flatpak-info"))
if (wivrn::is_flatpak())
{
QProcess flatpak_spawn;
flatpak_spawn.start("flatpak-spawn", {"--host", "cat", QString::fromStdString(vrmanifest)});