[mdlug] Adding a shell script to run after boot.
Adam Behnke
abehnke at gmail.com
Sun Apr 14 09:04:00 EDT 2013
ok, closer...
xsessions error fail on the part of my script that looks for the content on
usb drives, i think i have some fstab work lol.
** (xfce4-session:1331): WARNING **: Unable to launch
"/usr/local/bin/video.sh" (specified by autostart/videowall-1.desktop):
Failed to execute child process "/usr/local/bin/video.sh" (No such file or
directory)
find: `/media/VIDWALL': Permission denied
find: `/media/VIDWALL': Permission denied
find: `/media/VIDWALL': Permission denied
find: `/media/VIDWALL': Permission denied
find: `/media/VIDWALL': Permission denied
just to clear clear, here is the script inside /usr/local/bin/videowall.sh
#!/bin/bash
echo "scanning drives and creating the playlist"
find /media/* -type f -iname "*.mp4" > /home/$USER/playlist.txt
find /media/* -type f -iname "*.avi" >> /home/$USER/playlist.txt
find /media/* -type f -iname "*.mov" >> /home/$USER/playlist.txt
find /media/* -type f -iname "*.mpg" >> /home/$USER/playlist.txt
find /media/* -type f -iname "*.ogg" >> /home/$USER/playlist.txt
echo "--------------------------"
echo "launching playlist"
mplayer -vo xv -fs -stop-xscreensaver -loop 0 -zoom -playlist
/home/$USER/playlist.txt
is this an fstab issue or an auto start config file issue?
On Sat, Apr 13, 2013 at 7:33 PM, Jeff Hanson <jhansonxi at gmail.com> wrote:
> Sorry, the spec link was for menu structures, not menu file entries. This
> is the correct one:
> http://standards.freedesktop.org/desktop-entry-spec/latest/
>
>
> On Sat, Apr 13, 2013 at 7:32 PM, Jeff Hanson <jhansonxi at gmail.com> wrote:
>
> > You need an XDG/fdo menu entry (*.desktop) file in the
> ~/.config/autostart
> > directory.
> >
> > http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html
> >
> > Create a file named "myvideoscript.desktop" or similar and add to it:
> >
> > [Desktop Entry]
> > Encoding=UTF-8
> > Icon=video-display
> > Name=Autoplay videos
> > Comment=Start videos
> > Exec=/usr/local/bin/myscript
> > Terminal=false
> > Type=Application
> > Categories=Video;
> > StartupNotify=false
> >
> > Put your script in /usr/local/bin and make it executable. Should start
> > automatically at login. If it doesn't then check ~/.xsession-errors for
> > error messages.
> >
> >
> > On Sat, Apr 13, 2013 at 7:19 PM, Adam Behnke <abehnke at gmail.com> wrote:
> >
> >> Does anyone have advise on adding a script to run after boot. I'm making
> >> this script to play videos on a loop. I made a simple script and it runs
> >> great in terminal, but adding it to ubuntu sessions/startup does do
> >> anything. Adding it to rc.local seems to fail on launching mplayer
> before
> >> the system if fully booted.
> >> _______________________________________________
> >> mdlug mailing list
> >> mdlug at mdlug.org
> >> http://mdlug.org/mailman/listinfo/mdlug
> >>
> >
> >
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>
More information about the mdlug
mailing list