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
@@ -1417,11 +1417,10 @@ case $mode in
|
||||
export STEAM_STEAMRT_RECURSION_GUARD=1
|
||||
export LD_LIBRARY_PATH=$steam_root/steamrtarm64:$steam_root/steamrtarm64/panorama${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
||||
export SDL_VIDEO_X11_DGAMOUSE=0
|
||||
dd_steam_path=$PATH
|
||||
dd_steam_path="/usr/local/libexec/droiddeck-steam:$PATH"
|
||||
dd_steam_angle=vulkan
|
||||
dd_steam_presentation=()
|
||||
if [ "${DD_STEAM_GL_PRESENT:-}" = 1 ]; then
|
||||
dd_steam_path="/usr/local/libexec/droiddeck-steam:$PATH"
|
||||
export DISABLE_GAMESCOPE_WSI=1 LIBGL_KOPPER_DISABLE=true
|
||||
dd_steam_angle=gl
|
||||
dd_steam_presentation=(-cef-disable-gpu-compositing)
|
||||
|
||||
@@ -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