! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-session starts gpg-agent
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Anthony Carrico 2015-02-12 14:39:39 CET
As documented here:
  http://docs.xfce.org/xfce/xfce4-session/advanced

"By default xfce4-session tries to start the gpg- or ssh-agent"

I solved my trouble as document there:

xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false

Here are the bugs I see:

1. gnupg-agent starts even if
  "Session and Startup"->"Application Autostart"->"GPG Password Agent"
is NOT checked.

2. It is started with --enable-ssh-support even if ssh-agent is already running (stomping on the existing ssh-agent), and ignoring ~/.gnupg/gpg-agent.conf

3. man gpg-agent says "The agent is automatically started on demand by gpg, gpgsm, gpgconf, or gpg-connect-agent.   Thus  there is no reason to start it manually."

Personally, I start ssh-agent across all my sessions (X11, Wayland, VT) with
~/.config/systemd/user/..., and allow gpg-agent to autostart on demand.

It looks like the history of this issue is here:

"xfce-utils/scripts/xinitrc.in.in: Don't start ssh-agent and gpg-agent"

https://bugzilla.xfce.org/show_bug.cgi?id=7018

Thank You!
Comment 1 Bryan Wright 2015-02-24 17:05:50 CET
Hi folks,

I don't know if this is the same issue, but I'm finding that it's impossible to start xfce without either ssh-agent, gpg-agent or gnome-keyring starting.  I'd like to disable ALL of these.

I tried following the prescription here:

http://docs.xfce.org/xfce/xfce4-session/advanced

which says that the following command should disable ssh-agent and
gpg-agent, but it doesn't seem to have any effect:

xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false

I see from the same document that it's possible to substitute gnome-keyring
for both of these, but I don't want that either. 

The xfce version is 4.10, running under CentOS 7.

Any advice would be appreciated.

Bryan
Comment 2 Mikhail Efremov 2015-03-24 17:16:15 CET
(In reply to Bryan Wright from comment #1)
> I'd like to disable ALL of these.

The documentation should be updated, ssh-agent and gpg-agent handled separately now (see https://bugzilla.xfce.org/show_bug.cgi?id=8792).
Try this:
xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false

And make sure that 'GNOME compat mode' is disabled too (check xfconf-query -c xfce4-session -p /compat/LaunchGNOME and set it to false if needed), otherwise gnome-keyring will be launched.
Comment 3 Skunnyk editbugs 2020-05-25 23:48:22 CEST
Doc is updated, and gpg/ssh handling has been improved in 4.15 series

Bug #11533

Reported by:
Anthony Carrico
Reported on: 2015-02-12
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
6 users

Version

Version:
4.10.1

Attachments

Additional information