26 lines
821 B
Bash
Executable file
26 lines
821 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# via -> http://sc3howto.blogspot.be/2015/04/how-to-keep-installation-running-on.html
|
|
|
|
export DISPLAY=:0
|
|
#export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
|
|
#export XDG_RUNTIME_DIR=/run/user/1001
|
|
export JACK_NO_AUDIO_RESERVATION=1
|
|
|
|
port=57110
|
|
|
|
echo "ephemeral: ------------------------------------------------------------"
|
|
echo "ephemeral: `/bin/date`"
|
|
echo "ephemeral: as user `whoami`"
|
|
#echo "ephemeral: with env -> `env`"
|
|
echo "ephemeral: waiting..."
|
|
|
|
sleep 5
|
|
|
|
echo "ephemeral: sclang starting..."
|
|
|
|
#runuser -l foam -c 'screen -S test -m -d /usr/local/bin/sclang /home/foam/ephemeral-garden/sc3-test.sc >> /home/foam/ephemeral-garden/test.log 2>&1'
|
|
|
|
/usr/local/bin/sclang /home/foam/ephemeral-garden/sc3-test.sc 2>&1 >> /home/foam/ephemeral-garden/test.log
|
|
|
|
echo "ephemeral: sclang spawned..."
|