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

Mat Enders mat.enders at gmail.com
Sun Apr 14 17:17:26 EDT 2013


 Try modifying the shell line to add a -l (that is a lower case L).


#!/bin/bash -l

The -l argument specifies a login shell. If your usual login sets a lot of
environment variables this can quickly solve a multitude of strange
problems.


On Sun, Apr 14, 2013 at 4:35 PM, Adam Tauno Williams <awilliam at whitemice.org
> wrote:

> On Sun, 2013-04-14 at 12:01 -0400, Adam Behnke wrote:
> > fat32. yes
> > actually, the script works great via both a desktop launcher and
> terminal.
> > sleep did not help, in fact i had to delete the playlist to get the
> script
> > to write the found files on the usb into the playlist.
>
> Because user apps need a user session to operate normally.
>
> 1.) Set the box to auto-login as a guest user [or some user].
> 2.) Run gnome-session-properties and add the script as a "Startup
> program".
>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
>



-- 
Mathew E. Enders

"Where once Samba and Apache sold Linux to the world they are now just part
of the plumbing.  But that's OK, plumbers make good money."
--Jeremy Allison


More information about the mdlug mailing list