[Pkg-xfce-devel] Bug#791378: conflicts with /etc/X11/Xsession.d/90gpg-agent and unsets GPG_AGENT_INFO

Joey Hess id at joeyh.name
Sat Jul 4 03:15:53 UTC 2015

Package: xfce4-session
Version: 4.12.1-3
Severity: normal

At some point after the jessie release, an upgrade broke the gpg agent;
while the agent started on login, GPG_AGENT_INFO was not set. gpg2 could
the agent, but gpg v1 was unable to do so.

I added debugging to /etc/X11/Xsession.d/90gpg-agent and could see that
it was setting GPG_AGENT_INFO:

+ /usr/bin/gpg-agent
+ GPG_AGENT_INFO=/home/joey/.gnupg/S.gpg-agent:0:1

But, later along, xfce4-session did something that unset that variable:

+ exec /usr/bin/dbus-launch --exit-with-session x-session-manager
/usr/bin/x-session-manager: X server already running on display :0
gpg-agent: a gpg-agent is already running - not starting a new one

(xfce4-session:10715): xfce4-session-WARNING **: gpg-agent returned no PID in the variables

I noticed there's a /startup/gpg-agent/enabled to control whether xfce4-session
does this, and after manually adding that setting in the xfce
configuration editor, and setting it to false, the problem went away
on next login.

So, xfce4-session is clearly stomping on the toes of
/etc/X11/Xsession.d/90gpg-agent. Without reading its source code, but just
looking at strings, I hypothesize it's running gpg-agent, expecting some
output that it no longer produces, and then clobbering the already correctly

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages xfce4-session depends on:
ii  libatk1.0-0            2.16.0-2
ii  libc6                  2.19-18
ii  libcairo2              1.14.2-2
ii  libdbus-1-3            1.8.18-1
ii  libdbus-glib-1-2       0.102-1
ii  libfontconfig1         2.11.0-6.3
ii  libfreetype6           2.5.2-4
ii  libgdk-pixbuf2.0-0     2.31.4-2
ii  libglib2.0-0           2.44.1-1.1
ii  libgtk2.0-0            2.24.28-1
ii  libice6                2:1.0.9-1+b1
ii  libpango-1.0-0         1.36.8-3
ii  libpangocairo-1.0-0    1.36.8-3
ii  libpangoft2-1.0-0      1.36.8-3
ii  libpolkit-gobject-1-0  0.105-8
ii  libsm6                 2:1.2.2-1+b1
ii  libwnck22              2.30.7-2
ii  libx11-6               2:1.6.3-1
ii  libxfce4ui-1-0         4.12.1-2
ii  libxfce4util7          4.12.1-2
ii  libxfconf-0-2          4.12.0-2+b1
ii  multiarch-support      2.19-18
ii  xfce4-settings         4.12.0-2
ii  xfconf                 4.12.0-2+b1

Versions of packages xfce4-session recommends:
ii  dbus-x11           1.8.18-1
ii  libpam-systemd     221-1
ii  systemd-sysv       221-1
ii  upower             0.99.3-1+b1
ii  x11-xserver-utils  7.7+4
ii  xfdesktop4         4.12.2-1
ii  xfwm4              4.12.3-1
pn  xscreensaver       <none>

Versions of packages xfce4-session suggests:
pn  fortunes-mod  <none>
pn  pm-utils      <none>
ii  sudo          1.8.12-1

-- no debconf information

see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20150703/e3a02477/attachment-0001.sig>

More information about the Pkg-xfce-devel mailing list