I have not been able to figure out a way to see the ST GUI if RD starts it. I ended up having RD start Jack but I made a startup script that I call as the RD user. I also nohup each process in case of a lost connection, plus it also redirects the output to the nohup.out files:
Code:
#!/bin/bash
# onair.sh
printf "Restarting Rivendell...\n"
sudo systemctl restart rivendell
sleep 2
printf "Done!\n\n"
printf "Starting rdairplay...\n"
cd /home/rd/logs/rdairplay
rm -f nohup.out
sleep 1
nohup rdairplay &
sleep 1
printf "Done!\n\n"
sleep 1
printf "Starting qjackctl...\n"
cd /home/rd/logs/qjackctl
rm -f nohup.out
sleep 1
nohup qjackctl &
sleep 1
printf "Done!\n\n"
sleep 1
printf "Starting Stereo Tool...\n"
cd /home/rd/logs/stereo_tool
rm -f nohup.out
sleep 1
nohup stereo_tool &
sleep 1
printf "Done!\n\n"
sleep 1
#printf "Starting BUTT...\n"
#cd /home/rd/logs/butt
#rm -f nohup.out
#sleep 1
#nohup butt &
#sleep 1
#printf "Done!\n\n"
#printf "Starting Darkice...\n"
#cd /home/rd/logs/darkice
#rm -f nohup.out
#sleep 1
#nohup darkice &
#sleep 1
#printf "Done!\n\n"
printf "Starting GlassGUI...\n"
cd /home/rd/logs/glassgui
rm -f nohup.out
sleep 1
nohup glassgui --autostart &
sleep 1
printf "Done!\n\n"
sleep 1
onair2.sh
Then I use aj-snapshot to remove all Jack connections and then set them up with the actual names using jack_connect:
Code:
#!/bin/bash
# onair2.sh
# Disconnect all Jack connections
printf "Disconnecting all Jack connections...\n"
aj-snapshot -jx
printf "Done!\n\n"
sleep 1
# Connect Rivendell on-air outputs to Stereo Tool inputs
printf "Connecting Rivendell on-air outputs to Stereo Tool inputs...\n"
jack_connect rivendell_0:playout_0L stereo_tool:in_l
sleep 1
jack_connect rivendell_0:playout_0R stereo_tool:in_r
sleep 1
printf "Done!\n\n"
# Connect Stereo Tool outputs to glasscoder inputs
printf "Connecting Stereo Tool main outputs to GlassCoder inputs...\n"
jack_connect stereo_tool:fm_l glasscoder:input_1
sleep 1
jack_connect stereo_tool:fm_r glasscoder:input_2
sleep 1
printf "Done!\n\n"
# Connect Stereo Tool monitor output to System
printf "Connecting Stereo Tool monitor outputs to System...\n"
jack_connect stereo_tool:mon_l system:playback_1
sleep 1
jack_connect stereo_tool:mon_r system:playback_2
sleep 1
printf "Done!\n\n"
sleep 1
printf "All done!\n"
Hope this helps!