FS#19076 - [seahorse-plugins] start seahorse-agent automatically on login

Attached to Project: Arch Linux
Opened by Jonathan Conder (PirateJonno) - Tuesday, 13 April 2010, 13:31 GMT
Last edited by Jan de Groot (JGC) - Thursday, 05 May 2011, 10:23 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi, I've just finished setting up seahorse to handle my GPG keys. While doing so, I found I had to make seahorse-agent run every time I logged in. This was not a trivial task as the documentation is fairly sparse. However, I eventually figured it out, by reading this page:

http://live.gnome.org/Seahorse/SessionIntegration
and by looking at /etc/gdm/Xsession

From the options listed on the above page, I decided the "--variables" way was the best option, because "--execute" doesn't seem to be feasible (in gdm at least), and the other way is, as the page says, "hokey". To implement it I modified the script /etc/X11/xinit/xinitrc.d/70-seahorse-agent that is given in the Gentoo section. I changed the method from execute to variables because the Gentoo one interferes with the "command" variable, which /etc/gdm/Xsession doesn't like. On Arch, /etc/X11/xinit/xinitrc.d/30-dbus also does it this way. I also launched ssh-agent first because seahorse-agent is apparently supposed to start after it. This shouldn't interfere with later attempts to start ssh-agent, because the first one will set the envornment variable SSH_AUTH_SOCK, which for gdm at least means that ssh-agent will not be started again. I have tested it and can confirm that this is the case. However, I am not 100% sure whether ssh-agent really does need to be started first, as the above wiki page is rather outdated.

Anyway, here is the script: http://pastebin.com/VK3XJzc9
I called it /etc/X11/xinit/xinitrc.d/70-seahorse-agent but I don't think it matters much, although putting it after 30-dbus would be a good idea. I hope this can be included in the seahorse-plugins package, although I imagine there might be good reasons not to. Thanks for your time.
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 05 May 2011, 10:23 GMT
Reason for closing:  Won't implement
Additional comments about closing:  seahorse-plugins is dead.
Comment by Greg (dolby) - Friday, 04 March 2011, 05:19 GMT
The script link is invalid. Its better to attach it here
Comment by Magnus Therning (magus) - Friday, 04 March 2011, 09:11 GMT
This is indeed related to  FS#17099 

Loading...