mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-14 17:00:52 +02:00
Every place an installed Frametop started a program with `distrobox enter dev --` now goes through scripts/in-box: the pointer and power units, ft-gazed (ft-gaze, ft-eyes), the gaze check's panel, the desktop's ft-screens, the remote desktop's krdp and VNC, and the three settings apps. in-box starts the container in a scope of its own (container-up.sh, which now takes the container's name) and becomes `distrobox enter BOX --`, so callers behave as before. BOX is "dev" for a source install. A release names its own container in .frametop-release, so the same tree runs from an image without editing nine call sites. FRAMETOP_BOX overrides both. Development tools (frame.sh, the headless test, the gaze probe and lab) and hand tracking, which install.sh doesn't install, keep using the dev container. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
954 B
Bash
Executable File
17 lines
954 B
Bash
Executable File
#!/bin/bash
|
|
# Launch Frametop Input Settings from a Plasma session on the Frame host.
|
|
# The app runs in Frametop's container (PySide6 and Kirigami come from Fedora there).
|
|
# podman needs the real XDG_RUNTIME_DIR and the real user bus (to reach systemd for
|
|
# the container's cgroup; the Frametop session runs on a private bus from
|
|
# dbus-run-session). The session's Wayland socket and bus go to the app itself.
|
|
here=$(cd "$(dirname "$(readlink -f "$0")")" && pwd)
|
|
wl=${WAYLAND_DISPLAY:-wayland-0}
|
|
case $wl in /*) ;; *) wl="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/$wl" ;; esac
|
|
session_bus=${DBUS_SESSION_BUS_ADDRESS:-}
|
|
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
|
export DBUS_SESSION_BUS_ADDRESS=unix:path=$XDG_RUNTIME_DIR/bus
|
|
exec "$here/../scripts/in-box" env WAYLAND_DISPLAY="$wl" DISPLAY="${DISPLAY:-}" \
|
|
XAUTHORITY="${XAUTHORITY:-}" DBUS_SESSION_BUS_ADDRESS="$session_bus" \
|
|
QT_QPA_PLATFORM="wayland;xcb" \
|
|
python3 "$here/ft_input_settings.py" "$@"
|