So I need to launch a xfconf-query to restore the previous behavior : xfconf-query --create -c xfce4-session -p /startup/ssh-agent/type -t string -s gpg-agent
It would be cool to add a option to set it, for example in the Advanced tab in xfce4-session-settings, or document it :)
Version: Unspecified
Edited
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
The code portion isn't too hard but we'll need a decent UI for all the possible options. I added it to the design SIG since whatever I come up with will look terrible. https://wiki.xfce.org/design/xfce4-session/gpg-ssh-agents
Once there's an accepted mockup I'll happily get to work on implementing it!
Confirming ! After updating to xfce 4.12, I just spent two hours (!) to find this bug and to understand why gpg-agent was launched without ssh support. This made my day !!! :)
$ ps x | egrep 'ssh-agent|gpg-agent'
26852 ? Ss 0:00 /usr/bin/ssh-agent -s
26854 ? Ss 0:00 /usr/bin/gpg-agent --sh --daemon --write-env-file /home/fab/.cache/gpg-agent-info
Well, gpg-agent.conf is a config file for gpg-agent, not for xfce4-session, so that's expected not to find the command line option. The whole point of the config file option is to not have to pass it on the command line. And it does work fine for me:
Note that you /might/ be a victim of bug #12044 where xfce4-session startup code will fail to check that gpg-agent is currently running and run a new one, but failing to setup properly the GPG_AGENT_INFO variable. This happens with gpg-agent 2.1+.
Note that you /might/ be a victim of bug #12044 where xfce4-session startup
code will fail to check that gpg-agent is currently running and run a new
one, but failing to setup properly the GPG_AGENT_INFO variable. This happens
with gpg-agent 2.1+.
I don't think so. I'm using gpg-agent from gnupg-2.0.26.
(In reply to Yves-Alexis Perez from comment 5)
Well, gpg-agent.conf is a config file for gpg-agent, not for xfce4-session,
so that's expected not to find the command line option.
I'm aware of this, but in this case, I don't understand your comment 3.
In my case, setting enable-ssh-support into .gnupg/gpg-agent.conf has no effect.
Note that in the manual page of gpg-agent, it's not written that gpg-agent recognizes this option from the config file. As far I can see, it only recognizes the --enable-ssh-support command line option.
The whole point of the config file option is to not have to pass it on
the command line. And it does work fine for me:
Many questions : how do you start gpg-agent ? Is this xfce4-session who started it ? If yes, how do you set theses CLI options ? Why do you set « --homedir /home/corsac/.gnupg » since AFAIK it is the default ?
On my system, the only way I found to enable gpg-agent ssh support since xfce 4.12 is to run the xfconf-query command provided by the OP.
Well, gpg-agent.conf is a config file for gpg-agent, not for xfce4-session,
so that's expected not to find the command line option.
I'm aware of this, but in this case, I don't understand your comment 3.
In my case, setting enable-ssh-support into .gnupg/gpg-agent.conf has no
effect.
Note that in the manual page of gpg-agent, it's not written that gpg-agent
recognizes this option from the config file. As far I can see, it only
recognizes the --enable-ssh-support command line option.
The whole point of the config file option is to not have to pass it on
the command line. And it does work fine for me:
Many questions : how do you start gpg-agent ? Is this xfce4-session who
started it ? If yes, how do you set theses CLI options ? Why do you set «
--homedir /home/corsac/.gnupg » since AFAIK it is the default ?
On Debian, it's started by /etc/X11/Xsession.d/90gpg-agent, provided by the gpg-agent package. But here it might actually have been started by gpg itself.