LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Start a script after GDM autologin, don't quit when script finishes (https://www.linuxquestions.org/questions/linux-newbie-8/start-a-script-after-gdm-autologin-dont-quit-when-script-finishes-557260/)

Plastech 05-28-2007 02:03 PM

Start a script after GDM autologin, don't quit when script finishes
 
Okay, the last step of getting my digital photoframe to work is getting a simple script (literally just calls feh) to start on boot after automatically logging into GDM. I named the script .xsession and threw it in my root directory which works, but then when cron tries to kill and reload feh (to update the slideshow), the killing of feh causes GDM to exit back to the login page. Is there a way to keep gdm logged in? Or is there a better way to do this than using .xession?

Me <-- Uber-newb-tard

Thanks in advance....
Plas

Ha1f 05-29-2007 09:22 AM

add an '&' to the end?

you might want to just post the script and let us take a look at it.

Plastech 05-29-2007 10:15 AM

Fixed it. Trouble is, after all the lines of code in the .xsession file are executed, gdm logs out. So adding an & is even worse....the script quits before feh even loads. My solution was to install icewm and then place "exec icewm" in the last line. I modified IceWM so that it just displays a blue screen when nothing is loaded...it barely adds any resource requirements! Good luck to everyone else dealing with this.


All times are GMT -5. The time now is 07:54 AM.