Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-28-2007, 02:03 PM   #1
Registered: Jul 2006
Posts: 63

Rep: Reputation: 15
Arrow 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....
Old 05-29-2007, 09:22 AM   #2
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
add an '&' to the end?

you might want to just post the script and let us take a look at it.
Old 05-29-2007, 10:15 AM   #3
Registered: Jul 2006
Posts: 63

Original Poster
Rep: Reputation: 15
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 barely adds any resource requirements! Good luck to everyone else dealing with this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autologin script for serial port communication on Red Hat system ryuseiryuu Programming 1 08-16-2006 10:56 PM
GDM startup script slithy Linux - Software 1 07-21-2005 08:11 PM
Can I stop autologin with a script? videoediting SUSE / openSUSE 1 04-03-2005 10:03 PM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM
shell script to autologin into a telnet session eastj1974 Linux - General 1 11-17-2003 07:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration