diff options
| -rw-r--r-- | start-apps.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/start-apps.sh b/start-apps.sh new file mode 100644 index 0000000..36008a0 --- /dev/null +++ b/start-apps.sh @@ -0,0 +1,18 @@ +#!/bin/bash +mkdir -p /run/user/$(id -u) + +# Launch study-player. +# The script path is REQUIRED: with no arg, main.c defaults to game/main.rb +# (the raylib-jamstack HUD demo), which has no file-drop handler. The study +# player — whose CheckFileDrop system (drag-and-drop) lives here — must be +# loaded explicitly. Drag-and-drop otherwise silently does nothing. +cd /home/tradam/projects/study-player/rewrite +DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/$(id -u) ./zig-out/bin/game game/study_player/study_player.rb & +SPID=$! + +# Launch pcmanfm +DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/$(id -u) pcmanfm & +PCPID=$! + +echo "study-player PID: $SPID" +echo "pcmanfm PID: $PCPID" |
