LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-03-2008, 04:22 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Gnome Startup Script


I have a script that I want to execute when I log into GNOME. What is the file which will allow me to start my script when I log in as myself?

Last edited by metallica1973; 03-19-2012 at 01:38 PM.
 
Old 05-03-2008, 08:39 PM   #2
anon099
Member
 
Registered: Oct 2002
Posts: 188

Rep: Reputation: Disabled
System->Preferences->Sessions inside of gnome and then browse to find the script. I don't know where the actual text based config file is though.

Hope that helps.
 
Old 05-03-2008, 08:56 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
thanks for the advice. I have learned that you can just put your script into /etc/init.d/ and then create a link the /etc/rc.d/ directory and use an S (start) or K (kill) in the beginning of the name and it will get carried out according the runlevel that you want it to execute in. The problem that I am having now is that my script is not running and when I try and locate any error messages under /var/log/messages I dont see any error messages. Do you know of where the error output from /etc/rc.d/rc5.d/S98test_script(the name of my script)? I have tested my scipt and it works fine but when it executes under /etc/rc.d/rc5.d/S98test_script it doesnt work! Does anybody have any clue how to see why the script is not executing?

Last edited by metallica1973; 05-03-2008 at 11:23 PM.
 
Old 05-03-2008, 11:50 PM   #4
anon099
Member
 
Registered: Oct 2002
Posts: 188

Rep: Reputation: Disabled
um... are you sure that init.d isn't for when you boot up?
 
Old 05-04-2008, 01:42 PM   #5
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Quote:
um... are you sure that init.d isn't for when you boot up?
You are correct in that the /etc/init.d has the scripts that are used during the boot process but what controls when they boot are in different directories such as rc1.d - rc6.d. I am still trying to figure out why my scripts does not execute when gnome is started!
 
Old 05-04-2008, 07:00 PM   #6
anon099
Member
 
Registered: Oct 2002
Posts: 188

Rep: Reputation: Disabled
ya... rc.d's are for boot scripts.

1. Your system boots up
2. You get gdm/xdm(login screen)
3. You load up the gnome desktop

If something in listed in rc.d it get executed at step one, not step 3. I think I'm still confused as to what you are trying to do.
 
Old 05-04-2008, 10:53 PM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I want a script to execute and load up an application when I see the desktop. I know about->System->Preferences->Sessions. What files is control Sessions?
 
Old 03-19-2012, 11:17 AM   #8
anthalamus
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
Same question here, it's a very old post but the first google hit for "gnome startup script". Any one knows where that configuration file may be?
Thanks!
 
  


Reply



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
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
Exectuing Shell Script on Gnome Startup lloracle_dba Linux - Software 4 05-03-2005 03:32 PM
Gnome-panel, nautilus and gnome settings daemon Fail on Startup hitman_et Linux - General 0 04-01-2005 09:06 PM
Redhat 9 Gnome 2.4 Installation issue - X-Windows startup script reaper_90 Linux - Newbie 2 11-05-2003 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:52 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
Open Source Consulting | Domain Registration