Re: [arch-general] gpg-agent, ssh keys, and systemd --user

2013-04-15 Thread Robbie Smith
On 15/04/13 19:00, Damien Robert wrote: Robbie Smith wrote in message <5165674e.4080...@gmail.com>: I’ve written the following user service, and it should do the same thing, but it doesn’t seem to work: $ cat ~/.config/systemd/user/gpg-agent.service [Unit] Description=GnuPG private key agent W

Re: [arch-general] gpg-agent, ssh keys, and systemd --user

2013-04-15 Thread Damien Robert
Robbie Smith wrote in message <5165674e.4080...@gmail.com>: > I’ve written the following user service, and it should do the same > thing, but it doesn’t seem to work: > > $ cat ~/.config/systemd/user/gpg-agent.service > [Unit] > Description=GnuPG private key agent > Wants=environment.target > Be

Re: [arch-general] gpg-agent, ssh keys, and systemd --user

2013-04-12 Thread Sebastian Schwarz
On 2013-04-11 at 22:50 +1000, Robbie Smith wrote: > if (( $+commands[gpg-agent] )); then > local InfoFile=/run/user/$(id -u)/gpg-agent.info > if [[ -s $InfoFile ]]; then > eval "$(cat $InfoFile)" > fi > unset InfoFile > fi > > Strangely enough, this doesn’t see

Re: [arch-general] gpg-agent, ssh keys, and systemd --user

2013-04-11 Thread Robbie Smith
On 11/04/13 15:11, Simon Gomizelj wrote: systemd --user runs in its own separate login/cgroup. I doubt environmental variables set with `systemctl --user set-environment` going to be available outside of that login/cgroup. I doubt they're even made available to anything outside of future processe

Re: [arch-general] gpg-agent, ssh keys, and systemd --user

2013-04-11 Thread Simon Gomizelj
systemd --user runs in its own separate login/cgroup. I doubt environmental variables set with `systemctl --user set-environment` going to be available outside of that login/cgroup. I doubt they're even made available to anything outside of future processes spawned by systemctl. So it'll all depen

[arch-general] gpg-agent, ssh keys, and systemd --user

2013-04-10 Thread Robbie Smith
How can I get gpg-agent to work with ssh keys? The following script that I’ve put in /etc/profile.d sets it up, but I’d like to move my user daemons (such as gpg-agent) over to systemd --user. $ cat gpg-agent.sh #!/bin/sh envfile="${HOME}/.gnupg/gpg-agent.env" if test -f "$envfile" && kill -0