mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 02:00:19 +02:00
Don't let the screenshot copy inherit stdin either
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
03729ce950
commit
8a90e3e34f
2 files changed
+7
-1
No files matched your search
@@ -39,11 +39,17 @@ case "${1:-}" in
|
|||||||
# need to be open. The app starts in $HOME, so the profile path is relative.
|
# need to be open. The app starts in $HOME, so the profile path is relative.
|
||||||
# Without --no-first-run and --password-store=basic, startup can stop at a
|
# Without --no-first-run and --password-store=basic, startup can stop at a
|
||||||
# first-run or keyring prompt before DevTools comes up.
|
# first-run or keyring prompt before DevTools comes up.
|
||||||
|
# --disable-seccomp-filter-sandbox: under the XR seccomp policy, SteamVR's
|
||||||
|
# client reads /proc/self/status through the file broker, gets the
|
||||||
|
# broker's pid, and SteamVR binds the app to the wrong process, so
|
||||||
|
# xrCreateInstance fails. The namespace sandbox stays on, but seccomp is
|
||||||
|
# off for every process, so keep this profile for VR sites.
|
||||||
exec "$here/panel-on-frame.sh" --name chromium-xr -- '~/chromium-xr/chrome' \
|
exec "$here/panel-on-frame.sh" --name chromium-xr -- '~/chromium-xr/chrome' \
|
||||||
--user-data-dir=.config/chromium-xr \
|
--user-data-dir=.config/chromium-xr \
|
||||||
--enable-features=OpenXR \
|
--enable-features=OpenXR \
|
||||||
--ozone-platform=x11 \
|
--ozone-platform=x11 \
|
||||||
--no-first-run --no-default-browser-check --password-store=basic \
|
--no-first-run --no-default-browser-check --password-store=basic \
|
||||||
|
--disable-seccomp-filter-sandbox \
|
||||||
--remote-debugging-port="$DEVTOOLS_PORT" \
|
--remote-debugging-port="$DEVTOOLS_PORT" \
|
||||||
"${2:-https://immersive-web.github.io/webxr-samples/}"
|
"${2:-https://immersive-web.github.io/webxr-samples/}"
|
||||||
;;
|
;;
|
||||||
|
|||||||
+1
-1
@@ -249,7 +249,7 @@ def save_shots(body):
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
r = subprocess.run(["scp", "-p", *SSH[1:], *(f"{FRAME}:{p}" for p in todo), str(incoming)],
|
r = subprocess.run(["scp", "-p", *SSH[1:], *(f"{FRAME}:{p}" for p in todo), str(incoming)],
|
||||||
capture_output=True, text=True, timeout=300)
|
capture_output=True, stdin=subprocess.DEVNULL, text=True, timeout=300)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
raise Failure("Copying screenshots timed out")
|
raise Failure("Copying screenshots timed out")
|
||||||
if r.returncode != 0:
|
if r.returncode != 0:
|
||||||
|
|||||||
Reference in new issue
Block a user