For crypto,certificate-manager that "just works", references: http://bugs.kde.org/show_bug.cgi?id=79181 http://kmail.kde.org/kmail-pgpmime-howto.html In short, BuildRequires: gpgme-devel >= 0.4.5 See gpgme: http://bugzilla.fedora.us/show_bug.cgi?id=2180 and dependancies: gnupg2: http://bugzilla.fedora.us/show_bug.cgi?id=2179 pinentry: (in fedora.us/Extras already)
Created attachment 105544 [details] sample gpg-agent-startup script Sample gpg-agent startup, put in /usr/env (so startkde will automatically process on login)
Created attachment 105545 [details] sample gpg-agent-shutdown script Sample gpg-agent shutdown, put in /usr/shutdown (so startkde will automatically process on login)
Created attachment 112183 [details] Enable S/MIME backend without extra deps, enabled if gnupg2 installed Are the startup/shutdown scripts still needed for something? gpg-agent seems to be started without any extra tweaks when I've got gnupg2 installed and log into KDE. Anyway, here's an alternative without using any new dependencies: just pass the path to gpgsm in configure and the "base" S/MIME support is enabled. gpgsm/gnupg2 doesn't have to be installed at build or runtime, but if it is present when run, the KMail S/MIME backed is enabled, and kleopatra no longer refuses to start (the latter will need gpg-agent running). I think this would be a good addition to the FC package. I've added explicit path to gpg too, so that even if gnupg is not installed at build time, support for it gets compiled in.
A reasonable workaround at least until gpgme gets into Core. kdepim then uses it's own local/static gpgme copy at build time if the shared-lib isn't available. I'll have to revisit the gpg-agent issue.
Dunno how gpg-agent is getting started for you, but without the script in /usr/env kmail gives me warnings about gpg-agent not running.
Hm, I just remembered that I run keychain, http://www.gentoo.org/proj/en/keychain/ , that's probably it. Recent versions of it have added gpg-agent support, and although I don't remember specifically configuring any gpg-agent stuff for it, maybe it starts it by default OOTB. Anyway, I think that's a non-blocker wrt. my suggested patch in comment 3, and that gpg-agent stuff needs to be enabled somewhere else than KDE-specific startup/shutdown dirs so that non-KDE users can enjoy it as well. Possibly xinitrc.d. But that's offtopic here...
I'd love for gpg-agent stuff to go in /etc/profile.d, but there's no analogous location for logout/shutdown scripts. It would be a waste to keep gpg-agent running when not logged in.
OK, simpler approach (so we can actually make some progress)... I'll just put the gpg-agent-(startup|shutdown) scripts in FE's gnupg2 (so they can theoretically be used by non-KDE/gnome folks). All that is required now (as Ville suggested) is for kdepim to be built with ./configure options: --with-gpg=%{_bindir}/gpg --with-gpgsm=%{_bindir}/gpgsm
Patch from comment 3 still applies with some line offsets. +1 to applying it.
ping... kdepim now has --with-gpg=%{_bindir}/gpg but we're (still) missing --with-gpgsm=%{_bindir}/gpgsm
kdepim-3.5.3-5 already includes the patch from comment 3. Thanks for your reports