View previous topic :: View next topic |
Author |
Message |
paladin-zero Guru
Joined: 19 May 2004 Posts: 322
|
Posted: Mon Sep 20, 2004 4:48 pm Post subject: .xsession isnt being used |
|
|
I've got a working X.org/KDE setup, installed according to the gentoo desktop instructions. Now I am trying to get the gpg-agent to start by adding a line to my ~/.xsession file. I dont think .xsession is being read, either when I startx from the console or I boot into runlevel 5 and log in.
To start, could anyone give this newbie a suggestion on a command to put in .xsession to check that it is being read? I thought jut "xterm" would do it, but now I don't know.
Thanks! |
|
Back to top |
|
|
paladin-zero Guru
Joined: 19 May 2004 Posts: 322
|
Posted: Mon Sep 20, 2004 7:46 pm Post subject: |
|
|
I also noticed that I cant run "kdm -nodeamon" from the console as root. I have read that the problem may be that the runtime linker is not finding the shared Qt or KDE libraries. I think my .xsession file is not being looked for because the kde kdm/Xsession file is not being run, but I don't understand why that might be. |
|
Back to top |
|
|
beesea Apprentice
Joined: 07 Mar 2003 Posts: 273
|
Posted: Tue Sep 21, 2004 4:33 am Post subject: |
|
|
Try calling it .xinitrc. Note that .xinitrc won't be read by kdm though. |
|
Back to top |
|
|
georwell Guru
Joined: 25 Jun 2003 Posts: 430 Location: Uppsala, Sweden
|
Posted: Tue Sep 21, 2004 6:47 am Post subject: |
|
|
No need to start gpg-agent that way anymore! Caleb and the KDE team have already supplied a much better solution. This only works for 3.3 though...
Quote: | KDE now also supports startup and shutdown scripts in the /usr/kde/3.3/env and /usr/kde/3.3/shutdown directories. The ebuilds will install some generic scripts in there for you and you can comment lines out if you like to turn on ssh-agent or gpg-agent if you so desire. |
Works fine for me! |
|
Back to top |
|
|
ctford0 l33t
Joined: 25 Oct 2002 Posts: 774 Location: Lexington, KY,USA
|
Posted: Tue Sep 21, 2004 9:35 am Post subject: |
|
|
georwell wrote: | No need to start gpg-agent that way anymore! Caleb and the KDE team have already supplied a much better solution. This only works for 3.3 though...
Quote: | KDE now also supports startup and shutdown scripts in the /usr/kde/3.3/env and /usr/kde/3.3/shutdown directories. The ebuilds will install some generic scripts in there for you and you can comment lines out if you like to turn on ssh-agent or gpg-agent if you so desire. |
Works fine for me! |
the problem with this method is that it starts it for everyone...
paladin-zero, here is the solution to your problem. make sure you have the correct items in your xsession file. mine looks like this
Code: |
bash-2.05b$ cat .xsession
#!/bin/sh
source /usr/local/bin/gpg-agent-start.sh
/usr/kde/3.3/bin/startkde
|
where im using the gpg-agent-start.sh script that you can find on the net. now you want to make sure the .xsession file is executable so
Code: |
chmod u+x .xsession
|
now when kdm boots up you want to choose the custom session. this will make it look at your .xsession file instead of the /etc/X11/Sessions/kde-3.3.0 file.
chris |
|
Back to top |
|
|
|