Brett Parker wrote:
On 02 Jun 14:47, Chris G wrote:
On Wed, Jun 02, 2010 at 01:35:07PM +0100, Brett Parker wrote:
For X11/graphical logins, you can add lines to ~/.xsessionrc, all (sensible) logins will source that file, so you could then do something like: xless /path/to/my/fun/file.txt&
Not really true any more I'm afraid (~/.xessionrc getting executed that is), e.g. I don't think any Ubuntu or derivatives run it.
Erm, you're thinking of ~/.xsession... not the rc, please ;) Certainly on debian unstable, ~/.xsessionrc gets pulled in by all the other sessions. You select gnome, that should still be pulled in.
I agree about the "sensible" but more and more systems are now very non-standard and don't do 'proper' X.
I should point out that I am using gdm (so, we're in gnome territory), and that I am just telling it to start an awesome session (my window manager). I *used* to have it set to run my ~/.xsession, but I decided against that as then: [ -r $HOME/.xkb/keymaps/default ] && xkbcomp -I$HOME/.xkb $HOME/.xkb/keymaps/default $DISPLAY
Didn't get run... and that does some useful keyboard remappings for me, that wouldn't be useful to most other people (it maps Caps Lock to Meta4, for a start).
Hence I use ~/.xsessionrc which is sourced by all the main players (at least in debian).
This is *not* the same as ~/.xsession which is used purely for a completely customised X environment where you control every single thing that loads.
The other main reason for me using this method was that things like gnome-keyring and ssh-agent are wrapped around the sessions for the standard sessions, and that's a lot harder to do if you've got to remember all the bits yourself.
Hope that clears that up.
Thanks,
Coo yes!
(goes away and bangs head on wall)