LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-28-2007, 03:03 PM   #1
Plastech
Member
 
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....
Plas
 
Old 05-29-2007, 10:22 AM   #2
Ha1f
Member
 
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, 11:15 AM   #3
Plastech
Member
 
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 loaded...it barely adds any resource requirements! Good luck to everyone else dealing with this.
 
  


Reply


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 11:56 PM
GDM startup script slithy Linux - Software 1 07-21-2005 09:11 PM
Can I stop autologin with a script? videoediting SUSE / openSUSE 1 04-03-2005 11:03 PM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 12:00 PM
shell script to autologin into a telnet session eastj1974 Linux - General 1 11-17-2003 08:58 PM


All times are GMT -5. The time now is 08:56 PM.

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