You are not logged in.

#1 2008-07-28 20:50:40

tanis
Member
From: Poland / Waterloo, ON, Canada
Registered: 2007-04-21
Posts: 259

KDE 4.1 and ssh-agent/gpg-agent

Hi.

After upgrade to KDE 4.1 ssh-agent stopped running. Is there a way for re-enabling it?
I have found that it is mentioned in /usr/bin/startkde, but if I add it there it would be
removed by the next pacman upgrade. What is the right way to add it?
I don't use it, but I expect that the same goes for gpg-agent.

Last edited by tanis (2008-07-28 20:54:56)

Offline

#2 2008-07-28 21:02:50

tanis
Member
From: Poland / Waterloo, ON, Canada
Registered: 2007-04-21
Posts: 259

Re: KDE 4.1 and ssh-agent/gpg-agent

OK, it was as easy as adding 'ssh-agent.sh' script to ~/.kde4/env/ folder, containing: eval $( /usr/bin/ssh-agent ), and a script with ssh-agent -k to ~/.kde4/shutdown/ smile

Offline

#3 2008-07-28 21:13:37

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: KDE 4.1 and ssh-agent/gpg-agent

Ahah yeah, I also was wondering how to restore this ssh-agent stuff, then I saw your post, and wanted to tell you the answer was in the question.
I indeed just followed the instruction in this startkde script and it works nicely. Thanks a lot.

cd
mkdir -p .kde4/env .kde4/shutdown
echo 'eval `ssh-agent`' > .kde4/env/ssh-agent.sh
echo 'ssh-agent -k' > .kde4/shutdown/ssh-agent.sh
chmod +x .kde4/env/ssh-agent.sh .kde4/shutdown/ssh-agent.sh

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB