[arch-general] Starting gpg-agent on X login (gdm)
Magnus Therning
magnus at therning.org
Mon Apr 27 15:14:47 EDT 2009
Magnus Therning wrote:
[..]
> I'll report back as soon as I have my modfied GDM script and shell
> startup skeleton.
This is what I ended up with:
--- /etc/gdm/Xsession_orig 2009-04-27 17:13:50.346834448 +0100
+++ /etc/gdm/Xsession 2009-04-27 17:16:25.310151728 +0100
@@ -213,6 +213,14 @@
fi
fi
+# add seahorse if found
+seahorse="`gdmwhich seahorse-agent`"
+if [ -n "${seahorse}" ] && [ -x "${seahorse}" ]; then
+ command="seahorse-agent --execute $command"
+elif [ -z "${seahorse}" ]; then
+ echo "$0: seahorse not found!"
+fi
+
# add ssh-agent if found
sshagent="`gdmwhich ssh-agent`"
if [ -n "$sshagent" ] && [ -x "$sshagent" ] && [ -z
"$SSH_AUTH_SOCK" ]; then
It seems to work well enough, but feedback and suggestions are always
welcome.
In the end I don't start dbus-launch in /etc/gdm/Xsession, despite the
suggestions I found online. It seems it's started anyway, and running
as the logged in user, so why complicate things even further?
/M
--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus identi.ca|twitter: magthe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://www.archlinux.org/pipermail/arch-general/attachments/20090427/bf690891/attachment.pgp>
More information about the arch-general
mailing list