mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 06:00:09 +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>
25 lines
1.0 KiB
Desktop File
25 lines
1.0 KiB
Desktop File
# Template: the installer replaces @REPO@ with the repo path on the Frame.
|
|
[Unit]
|
|
Description=Frametop pointer helper: the universal 3D mouse (cursor, collision, ft_pointer driver)
|
|
Documentation=file://@REPO@/README.md
|
|
# Needs SteamVR's IPC; it starts and stops with SteamVR.
|
|
After=steamvr.service frametop-input-relay.service
|
|
PartOf=steamvr.service
|
|
|
|
[Service]
|
|
# Runs in the dev container (built there against its libraries). The helper process
|
|
# lives in the container, so clean it up explicitly around distrobox enter.
|
|
# Start the container in a scope of its own first: started by this service (distrobox enter
|
|
# does that on demand), stopping the service would stop the container and all in it.
|
|
ExecStartPre=-@REPO@/scripts/container-up.sh
|
|
ExecStartPre=-/usr/bin/pkill -x ft-pointer
|
|
ExecStart=%h/.local/bin/distrobox enter dev -- @REPO@/pointer/helper/build/ft-pointer
|
|
ExecStopPost=-/usr/bin/pkill -x ft-pointer
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
# The container session (conmon) ignores SIGTERM; don't wait 90 s for it.
|
|
TimeoutStopSec=5
|
|
|
|
[Install]
|
|
WantedBy=steamvr.service
|