From cfcdda455e92fe9ce484e242a1a918403392fbb4 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Mon, 29 Jun 2026 17:25:53 +0900 Subject: fix: start-apps.sh launches the study player (drag-and-drop was dead) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- start-apps.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 start-apps.sh 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" -- cgit v1.2.3