[mdlug] Adding a shell script to run after boot.

Jeff Hanson jhansonxi at gmail.com
Sat Apr 13 19:33:59 EDT 2013


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
>>
>
>


More information about the mdlug mailing list