LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-28-2006, 10:22 AM   #1
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Rep: Reputation: 0
Getting a command to execute at Gnome startup


I'm using Ubuntu 6.06 and would like to execute a command at startup (as the subject implies). As I understand it, this is done from the "Sessions" applet under the "Startup Programs" tab. I have added a command to the list which I know works, because I tested it in the shell and then cut and paste it into the command prompt in this applet.

Of course, nothing appears to execute when I log into Gnome. I am the only user on this machine and I always log in using my account (not a superuser). The application is stored in my home folder, which my account has access to.

I guess my question is...

1. Am I doing this correctly, and if so...
2. Is this the best way to make a program autorun at startup using Ubuntu/Gnome?
3. ...and if so, is there a log I can look at to determine the point of failure in executing this command? I ask because, I receive no error messages, it just doesn't run.

TIA for any advice you might be able to offer.
 
Old 06-28-2006, 11:04 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
1. Yes, I think you are doing it correctly
2. If you wish to use it when Gnome starts, yes. I don't see why you should start playing with external schedulers or such things.
3. I'm not aware of such a log, but that doesn't mean it wouldn't exist..I hope somebody knows this better than I do

There's this option "Save session automatically" (might not be written exactly like that) in the Session control window (used to be at least, last time I used Gnome). Try enabling it and see if that helps; this sounds like a long shot but you probably don't lose anything. It simply means that your session gets saved, for example if you're running some apps or doing something particular when you log out, the desktop comes back exactly as you left it when you log back in.
 
Old 06-28-2006, 02:21 PM   #3
cwa107
LQ Newbie
 
Registered: Jun 2006
Distribution: Ubuntu 5.10
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by b0uncer
1. Yes, I think you are doing it correctly
2. If you wish to use it when Gnome starts, yes. I don't see why you should start playing with external schedulers or such things.
3. I'm not aware of such a log, but that doesn't mean it wouldn't exist..I hope somebody knows this better than I do

There's this option "Save session automatically" (might not be written exactly like that) in the Session control window (used to be at least, last time I used Gnome). Try enabling it and see if that helps; this sounds like a long shot but you probably don't lose anything. It simply means that your session gets saved, for example if you're running some apps or doing something particular when you log out, the desktop comes back exactly as you left it when you log back in.
Believe it or not, that seemed to do the trick. Thanks for the tip, both of my commands are running now.
 
Old 06-28-2006, 04:50 PM   #4
spiral out
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
sorry *delete me*

Last edited by spiral out; 06-28-2006 at 05:24 PM.
 
  


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
How can I execute a cmd on a startup ?? lab123 Linux - Networking 1 09-13-2005 12:42 PM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 06:31 AM
xinitrc in libranet? how do i execute a command on x startup? bleargh Linux - Software 6 12-11-2004 11:00 PM
gnome-terminal command line startup fredgarvin Red Hat 2 09-16-2004 10:39 PM
execute mount (or any) command on startup frieza Linux - Software 3 04-29-2003 06:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:19 AM.

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