File size: 706 Bytes
5eec1f1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -eu
mkdir -p /logs/artifacts /root/.local/share/filmcraft /root/.config/filmcraft
if [ ! -S /tmp/.X11-unix/X1 ]; then
 Xvfb :1 -screen 0 1280x900x24 -ac +extension RANDR >/tmp/task01-xvfb.log 2>&1 &
fi
export DISPLAY=:1
sleep 1
if [ -z "${DBUS_SESSION_BUS_ADDRESS:-}" ]; then
 eval "$(dbus-launch --sh-syntax)"
fi
# Activate and verify the restricted desktop-launch service before XFCE starts.
thunar --daemon >/tmp/task01-filemanager-preflight.log 2>&1 &
startxfce4 >/tmp/task01-xfce.log 2>&1 &
sleep 2
/usr/local/bin/filmcraft --empty --no-recover --graphics software >/tmp/task01-filmcraft.log 2>&1 &
# Keep the desktop alive when the editor closes so the GUI launcher can reopen it.
wait