summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-29 17:25:53 +0900
committerAdam Malczewski <[email protected]>2026-06-29 17:25:53 +0900
commitcfcdda455e92fe9ce484e242a1a918403392fbb4 (patch)
treefa63a41ea193e63a62f050e66ae000799ea4b26a
parentc1c7bf0954eb7c0f9d9aff70737e84930630021e (diff)
downloadstudy-player-cfcdda455e92fe9ce484e242a1a918403392fbb4.tar.gz
study-player-cfcdda455e92fe9ce484e242a1a918403392fbb4.zip
fix: start-apps.sh launches the study player (drag-and-drop was dead)
With no script arg, main.c defaults to game/main.rb — the raylib-jamstack HUD demo — which has no file-drop handler. Pass the study-player script explicitly so the CheckFileDrop system (drag-and-drop) is actually loaded.
-rw-r--r--start-apps.sh18
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"