[kde-freebsd] KMail - GPG Integration How-To

Dima Panov Fluffy at fluffy.khv.ru
Wed Oct 14 04:13:42 CEST 2009


On Wednesday 14 October 2009 07:35:54 Dwayne MacKinnon wrote:
> Hi guys,
> 
> I'm not sure how to submit updates for the website. Is there a guide on how
>  to format things? Because I think I've found a better way to start up
>  gpg-agent with KDE.
> 
> I started researching the problem because at home I have to use kdm so my
>  wife can have her own account. KDM doesn't read .xinitrc. So I did some
>  research and found the following method.
> 
> Creating an executable file in ~/.kde4/env with the following lines will do
> the gpg-agent startup and environment variable propagation perfectly, and
>  will work both with startx and KDM:
> 
> #!/bin/sh
> 
> killall gpg-agent #Get rid of old processes.
> rm -Rf /tmp/gpg* >/dev/null 2>&1 #Remove stale socket files
> eval "$(gpg-agent --daemon --sh)"
> 
> You can even put it in /usr/local/kde4/env so that it will start up a
>  process for any user that logs in. It's multi-user safe... killall only
>  works on processes that match your own user-id (unless you're the
>  super-user) and the rm command will dump any messages into /dev/null.
> 
> Any thoughts? And if there's a guide out there for creating a website
>  update, let me know where it is and I'll do a better writeup.

I use security/keychain - it can handle both ssh and gpg keys, and sets environment in 
correct way for kdm login

====.kde4/env/keychain.sh
#!/bin/sh

# Start the agent and set the variables.
eval `keychain --attempts 5 --agents gpg,ssh 93E3B018 D5398F29 id_rsa id_dsa id_dsa_2`
=========================

====.cshrc
if (-f $HOME/.keychain/$HOST-csh) then
    source $HOME/.keychain/$HOST-csh
endif
if (-f $HOME/.keychain/$HOST-csh-gpg) then
    source $HOME/.keychain/$HOST-csh-gpg
endif
==========

-- 
Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018
Khabarovsk, Russia          | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29
KDE at FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995
Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-freebsd/attachments/20091014/a587085c/attachment.sig 


More information about the kde-freebsd mailing list