Miscellaneous > Technical Support
Ok, simplest way to startup apps in XFCE
piratePenguin:
--- Quote from: GenuineAdvantage ---Saving the session starts up some things, like gkrellm, but not others. I'm trying to startup gdesklets. Thanks for the tips but I've already tried all this. I've tried everything suggested to me and nothing works for me for some reason. And I don't have a .xinitrc in the home dir. Creating it doesn't work either.
--- End quote ---
I think that could be because the way your display manager starts X11... Not the same way as starting it with 'startx'.
GenuineAdvantage:
You were right, it's because of ubuntu. Starting x with gdm not startx. I tried it on 2 other distros and there is no problem with this. On PCLOS I had to do it another way though, by making a script in /usr/local/bin and setting it in the xfce rc, but it worked. As of now I have ubuntu 5.10 the most nicely tweaked besides this problem. I'd still like to know how to do it on it. Anyone running ubuntu for a while now know it's behaviors? How do I change gdm to startx and would there be any problems doing so?
piratePenguin:
--- Quote from: GenuineAdvantage ---You were right, it's because of ubuntu. Starting x with gdm not startx. I tried it on 2 other distros and there is no problem with this. On PCLOS I had to do it another way though, by making a script in /usr/local/bin and setting it in the xfce rc, but it worked. As of now I have ubuntu 5.10 the most nicely tweaked besides this problem. I'd still like to know how to do it on it. Anyone running ubuntu for a while now know it's behaviors? How do I change gdm to startx and would there be any problems doing so?
--- End quote ---
KDM also does not obey my ~/.xinitrc script.
I'm guessing it's just the way graphical login managers work. X is already started so there's no point in running 'startx'.
Infact startx is just a shell script that calls 'xinit' which is what actually processes ~/.xinitrc. I dunno why, but graphical mangers seem to not like using xinit, and do everything themselves.
For GDM, /etc/gdm/PreSession/ and /etc/gdm/PostSession/ hold shell scripts which are executed before or after a session is setup. From /etc/gdm/gdm.conf:
--- Quote ---# Note that a post login script is run before a PreSession script.
# It is run after the login is successful and before any setup is
# run on behalf of the user
--- End quote ---
So stick a shell script in one of those directories (PostSession).
Navigation
[0] Message Index
[*] Previous page
Go to full version