mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
fix(guest): use /usr/bin/python3 in the payload shebangs, not /usr/bin/env (#2930)
PRoot's link2symlink resolves /usr/bin/env to a `.l2s.env….` stub and the guest's uutils coreutils multicall refuses that name: Security violation: Requested utility 'env' does not match executable name: /usr/lib/cargo/bin/coreutils/.l2s.env0001.0116 Every exec of these five scripts therefore dies with GUEST_EXIT 1 before Python starts, 20-60 ms into the session. They are droiddeck-diagnostic- inventory (the session's first child), droiddeck-desktop-bookmarks (the desktop's bookmarks refresh), droiddeck-ime, droiddeck-steam-games and droiddeck-steam-shortcuts. The absolute interpreter is what the other payload scripts already use, and the guest runtime installs the python3 package (tools/ubuntu/ packages-runtime.txt), so /usr/bin/python3 exists in the rootfs. Only the tracked overlay copies change: app/src/main/assets/linuxfs is generated by the stageSessionScripts Gradle task, so the asset copies follow from the overlay. Co-authored-by: Pablo González <pgm1207@users.noreply.github.com> Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
5 files changed
+5
-5
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
import argparse
|
||||
import hashlib
|
||||
import json
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import os
|
||||
import select
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
import ctypes as C
|
||||
import functools
|
||||
import json
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/python3
|
||||
"""Import added games while Steam is closed, preserving user-created shortcuts.
|
||||
|
||||
Usage: droiddeck-steam-shortcuts <steam_root> <added-games.json>
|
||||
|
||||
Reference in new issue
Block a user