Hello, I'd like to humbly suggest an automatic install of a "webshortcut" (like gg:, cpan:, dict:, etc.) to search packages.gentoo.org easily via kde standards. I thought something in the line of changing pkg_postinst() to: -------------------------------->%----------------------------------------- pkg_postinst() { # as in the ebuild for 3.2.2 mkdir -p ${KDEDIR}/share/templates/.source/emptydir # just in case mkdir -p ${KDEDIR}/share/services/searchprovider # packages.gentoo.org web-shortcut cat > ${KDEDIR}/share/services/searchprovider/pgo.desktop <<'EOF' [Desktop Entry] Charset= Hidden=false Keys=pgo Name=Gentoo Package Database Query=http://packages.gentoo.org/search/?sstring=\\{@} ServiceTypes=SearchProvider Type=Service EOF } -------------------------------->%----------------------------------------- this allows to search with the shortcut 'pgo' (e.g. pgo:kdebase). warm regards, Tom Regner Reproducible: Always Steps to Reproduce:
forget to mention: I send this as email to kde@gentoo.org, but never got a reply (not even a "silly you" one); again regards, tom
Tom: This is Caleb's stuff, but in my case every incoming kde@gentoo.org email, which is not from bugs.g.o goes unseen into the wastebasket; Too much spam. Please use bugs.g.o.
sounds like a good idea to me, though i'd rather see the pgo.desktop file added to FILESDIR and copied into the install directory instead.
to copy a file is indeed the cleaner way. I completly overlooked that possibility, silly me ;)
in 3.3.2 ebuild
Is there a reason we can't put this in its own ebuild, outside kde-base, installed into /usr, and with a version number not necessarily tied to kde versioning? There's no obvious place to put it in the split ebuilds, and there's no need to upgrade it until kde changes its searchprovider format.
...Or, in case kde does change their format, we could install it into KDE's directory, but should still have a separate ebuild.
Just for reference, there are a couple more here: http://www.kde-apps.org/content/show.php?content=11469 I think it is right to have them shipped together with the kdebase ebuild, though, and with konqueror in case of splitted ebuilds.