mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 12:00:11 +02:00
With the pointer released, the helper still listed overlays by running vrcmd every second, a new SteamVR client each time, which kept SteamVR from going to standby. The list now pauses while the pointer is off. Starting the dev container from one of our services made that service own it, so stopping the service stopped the container and the desktop's compositor with it. scripts/container-up.sh starts the container in a systemd scope of its own before every distrobox enter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
824 B
Bash
Executable File
13 lines
824 B
Bash
Executable File
#!/bin/bash
|
|
# Runs on the Frame host. Starts the dev container, if it isn't running, in a systemd scope
|
|
# of its own. Whoever starts a podman container owns its monitor (conmon): started from one
|
|
# of our services (distrobox enter starts it on demand), the container, and everything in it
|
|
# like the desktop's compositor, would be killed when that service stops. Call this before
|
|
# `distrobox enter`.
|
|
box=${FRAME_BOX:-dev}
|
|
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
|
|
[ "$(podman container inspect -f '{{.State.Running}}' "$box" 2>/dev/null)" = true ] && exit 0
|
|
podman container exists "$box" 2>/dev/null || exit 0 # not created yet: setup/dev-container.sh does that
|
|
exec systemd-run --user --scope --quiet --collect --description="$box container (started for Frametop)" \
|
|
podman start "$box" >/dev/null
|