LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Automatically launching programs upon X windows startup (https://www.linuxquestions.org/questions/linux-newbie-8/automatically-launching-programs-upon-x-windows-startup-235918/)

kimchee411 09-27-2004 04:25 PM

Automatically launching programs upon X windows startup
 
What is the file that will allow me to specify commands that will automatically be run when X windows starts? I'm using Fedora Core 2.

scuzzman 09-27-2004 04:26 PM

What WM/DE do you use?
For KDE, go to you KDE control Center
Session Manager
Startt with saved session

then:
open all programs you want ot immediately start, and go to your "K" button -> Save Session

kimchee411 09-27-2004 04:31 PM

Quote:

Originally posted by scuzzman
What WM/DE do you use?
For KDE, go to you KDE control Center
Session Manager
Startt with saved session

then:
open all programs you want ot immediately start, and go to your "K" button -> Save Session

I'm using Metacity on Gnome. I'd prefer to do it the old school way, by editing the configuration file myself :) But also knowing how to do it through say, gconf-editor, if that's the way, would be cool too.

scuzzman 09-27-2004 04:46 PM

Might wanna check out this thread, may prove useful.
I don't use Gnome - I use KDE 3.2
but look for a .gnome folder and open all config files in there... may see something. (Guessing at this point)

kimchee411 09-27-2004 07:13 PM

I don't see anything in ~/.gnome/ that does it... :(

kimchee411 09-29-2004 01:31 AM

BUMP... wow, no replies. Thought it would be an easy one...

Tinkster 09-29-2004 01:38 AM

Well ... if all else fails:

just create a ~/.xinitrc (or ~/.xsession depending on
how you start X [via session-manager or startx]) and
start the things you want to run within the gnome-session
before you start gnome...

E.g. (I use xdm, so here's my .xsession)
Code:

/usr/local/bin/tpb&
xscreensaver&
exec /usr/local/bin/fluxbox

You'd obviously want to replace the
exec fluxbox
line with whatever starts Gnome.


Cheers,
Tink

kimchee411 10-19-2004 02:43 AM

Figured this out, for future reference. It can be done in Gnome with gnome-session-properties


All times are GMT -5. The time now is 03:47 AM.