On 3/18/21 10:46, wa7skg wrote: > > I am assuming you are talking about starting RDAirplay on reboot? > > There's many ways to do this. This is how I do it. This is not a Desktop > Entry. > > First, I use a crontab entry to call a startup script. > > @reboot sleep 90 && export DISPLAY=:0 && /home/rd/scripts/khrb-rd_start.sh > > This runs on a reboot. It waits for 90 seconds to give time for all the > other startup stuff to finish. >
Or the simpler solution is (assuming a "stock" Rivendell 3.x installation): ~rd/.config/autostart/RDAirplay.desktop The contents of which is: > [Desktop Entry] > Encoding=UTF-8 > Version=0.9.4 > Type=Application > Name=RDAirplay > Comment=Rivendell playout app > Exec=/usr/bin/rdairplay > OnlyShowIn=XFCE; > StartupNotify=false > Terminal=false > Hidden=false You can create this file by hand and drop it in place (permissions '644'), or you can use the XFCE4 menus to add it (Applications -> Settings -> Session and Startup) in the "Application Autostart" tab. This works reliably on all recent versions of Rivendell using XFCE4 on CentOS 7. Hope this helps! ~David Klann > The this script runs: > ***************************************************** > #!/bin/bash > # Script loads up Rdairplay with current log in format MM_DD_YYYY and > starts playing log. > # Notifies in notice area that system has been rebooted automatically > and ensures it is in automatic mode > # Gives the user the option to cancel and start RDAirplay manually > # Meant for unattended restart. It also assumes loading the log into > log machine 1 > > max=20 > ( > > for ((i=0; i<=max; i++)) ; > do > let percent=($i*100/$max) > let seconds=($max-$i) > > echo "$percent" ; > echo "#Launching RDAirplay in automatic mode in " $seconds " seconds > \nPress Cancel to Abort" ; > sleep 1 > done > # Change this next line if you are using a different format > > date1=`date +"%m""%d"` > > rdairplay --log1=KHRB-$date1 & > > sleep 5 > day=`date +"%m"/"%d"/"%Y"-"%T"` > # Set to Automatic Mode > rmlsend PM\ "2"! & > # Send a Play Next > rmlsend PN\ "1"! & > # Notify next host of unattended restart > rmlsend LB\ "System Rebooted Automatically at "$day\! > > ) | > zenity --progress \ > --title="RDAirplay" \ > --text="Launching RDAirplay" \ > --percentage=0 \ > --auto-close > > if [ "$?" = -1 ] ; then > zenity --error \ > --text="Canceled." > > > fi > > exit > ****************************************************** > > Of course you will have to tweak it to match your configuration. > > This will launch RDAirplay, load the current log and start it playing. > Be sure your BIOS is configured to boot the computer on return from > power loss. > > HTH, > Michael > > > Angelena Chapman wrote on 3/18/21 8:24 AM: >> Does anyone want to share their Desktop Entry for getting RD Airplay to >> autostart in CentOS 7? >> >> I used to use ~/.kde/Autostart/rdairplay.desktop ... but this new build >> is not using .kde so I don't really know where to put the Desktop Entry >> and autostart or what to put in it??? >> >> Thanks for any tips or help pointing me in the right direction! >> Angelena >> >> >> *Angelena Chapman >> * >> *RenewFM* >> >> >> > _______________________________________________ > Rivendell-dev mailing list > Rivendell-dev@lists.rivendellaudio.org > http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev > _______________________________________________ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev