]> git.parisson.com Git - telecaster-server.git/commitdiff
use $FLUXBOX_DIR
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 4 Apr 2022 09:05:11 +0000 (11:05 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 4 Apr 2022 09:05:11 +0000 (11:05 +0200)
src/home/telecaster/.fluxbox/startup

index db5f3e1a877a0c007e96f0383a46240b857cc63b..fd00befd4d4cdee5804294a8dc58f9f909516f3f 100644 (file)
@@ -23,6 +23,8 @@ if [ $? -eq 0 ]; then
     fbautostart
 fi
 
+$FLUXBOX_DIR=/home/telecaster/.fluxbox
+
 # telecaster
 
 konsole &
@@ -31,11 +33,11 @@ qjackctl &
 
 sleep 3
 
-/home/telecaster/.fluxbox/scripts/tc_audio_mp3_icecast-gst1.sh &
+$FLUXBOX_DIR/scripts/tc_audio_mp3_icecast-gst1.sh &
 
 sleep 3
 
-/home/telecaster/.fluxbox/scripts/tc_video_simple_webm_stream-gst1.sh &
+$FLUXBOX_DIR/scripts/tc_video_simple_webm_stream-gst1.sh &
 
 sleep 3
 
@@ -62,9 +64,8 @@ sleep 3
 # jack_connect system:capture_3 gst-launch-1.0-01:in_jackaudiosrc0_2
 
 # Additional local bash scripts
-LOCAL_STARTUP=/home/telecaster/.fluxbox/startup.local
-if [ -f $LOCAL_STARTUP ]; then
-    sh $LOCAL_STARTUP
+if [ -f $FLUXBOX_DIR/startup.local ]; then
+    sh $FLUXBOX_DIR/startup.local
 fi
 
 #Audio monitor
@@ -79,4 +80,4 @@ deefuzzer /etc/telecaster/deefuzzer/telecaster_webm_monitor.yaml &
 
 exec fluxbox
 # or if you want to keep a log:
-# exec fluxbox -log "/home/telecaster/.fluxbox/log"
+# exec fluxbox -log "$$FLUXBOX_DIR/log"