summaryrefslogtreecommitdiffhomepage
path: root/start-apps.sh
blob: 36008a0480985a87868a8abdc7c429f63a93f53a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"