Hi, My shell is bash. In my ~/.bashrc I set : > export GNUPGHOME="~/mygnupg" Then I do : > $ mv ~/.gnupg ~/.gnupg-backup > $ touch .gnupg When I start an Xfce session, I find in logs : > /usr/share/slim/Xsession: Beginning session setup... > /usr/share/slim/Xsession: Setup done, will execute: /usr/bin/ck-launch-session /usr/bin/dbus-launch --exit-with-session /etc/X11/Sessions/Xfce4 > /usr/bin/startxfce4: X server already running on display :0.0 > gpg-agent[6330]: can't use `/home/netfab/.gnupg' as home directory /etc/xdg/xfce4/xinitrc does not read user shell environment rc files, and is starting gpg-agent with a blank environment, gnupg is unusable. xfce-base/xfce-utils-4.8.3 Thanks. Reproducible: Always Steps to Reproduce: 1. export GNUPGHOME="~/mygnupg" in your shell environment rc file 2. startup an Xfce session 3. see error about gnupg home directory in your logs
Propably wrong setting in slim.conf that doesn't allow the environment to be respected. Attach the slim.conf and any .xnitrc or similar that might be used.
Created attachment 290867 [details] slim.conf I do not have any .xinitrc or such file. Do I need one ? Login command is : > login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
I don't see why ~/.bashrc should be parsed here, but Samuli seems to see merit.
From http://wiki.xfce.org/tips : > How to customize starting Xfce > > Like most UNIX terminal sessions, Xfce runs through user-customizable startup > file when it starts up. You can edit this init file to run your own scripts, > send environment variables to the GUI, etc. > > To add your own startup code, edit the xinitrc file like this: > > * Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/ > * Add your own code to the file. For example, > you could start the rxvt-unicode server: > * source $HOME/.bashrc > * # start rxvt-unicode server > * urxvtd -q -o -f I will give it a try, but is sounds strange to me that I must customize the main Xfce startup script simply to reflect a basic shell configuration file.
Ok, I found the explanation. No need to customize the xinitrc script. In my ~/.bashrc, I just need to export the wanted variable before this block : > # Test for an interactive shell. There is no need to set anything > # past this point for scp and rcp, and it's important to refrain from > # outputting anything in those cases. > if [[ $- != *i* ]] ; then > # Shell is non-interactive. Be done now! > return > fi Coming from /etc/skel/.bashrc.
Closing as per http://wiki.xfce.org/tips