mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 06:15:58 +00:00
fix(steam): start the web helper when Android refuses CPU pinning on every GPU (#2819)
This commit is contained in:
1 parent
d6496b2f96
commit
bc11653c15
2 files changed
+3
-4
No files matched your search
@@ -12,7 +12,7 @@ SESSION = Path(__file__).resolve().parents[1] / "linuxfs/overlay/usr/local/bin/d
|
||||
class SteamPresentationTest(unittest.TestCase):
|
||||
def launch(self, enabled=None, inherited=None):
|
||||
source = SESSION.read_text()
|
||||
begin = source.index(" dd_steam_path=$PATH")
|
||||
begin = source.index(" dd_steam_path=")
|
||||
end = source.index("\n decky_loader=", begin)
|
||||
command = source.index(' PATH="$dd_steam_path"')
|
||||
command_end = source.index("\n rc=$?", command)
|
||||
@@ -41,7 +41,7 @@ class SteamPresentationTest(unittest.TestCase):
|
||||
env=env, capture_output=True, text=True, timeout=5)
|
||||
self.assertEqual(result.returncode, 0, result.stderr)
|
||||
launch = json.loads(result.stdout.splitlines()[-1])
|
||||
self.assertEqual(enabled == "1", launch["path"].startswith("/usr/local/libexec/droiddeck-steam:"))
|
||||
self.assertEqual(launch["path"], "/usr/local/libexec/droiddeck-steam:" + env["PATH"])
|
||||
self.assertEqual(launch["helper"], str(Path(tmp) / "steamrtarm64/steamwebhelper"))
|
||||
return launch
|
||||
|
||||
|
||||
Reference in new issue
Block a user