Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53956 - Konqueror WebShortcut for the "Gentoo Package Database"
Summary: Konqueror WebShortcut for the "Gentoo Package Database"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-15 01:08 UTC by Tom Regner
Modified: 2004-12-26 05:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Regner 2004-06-15 01:08:59 UTC
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:
Comment 1 Tom Regner 2004-06-15 01:10:17 UTC
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
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2004-06-15 07:00:26 UTC
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.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-06-15 07:18:25 UTC
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.
Comment 4 Tom Regner 2004-06-15 07:23:17 UTC
to copy a file is indeed the cleaner way.
I completly overlooked that possibility, silly me ;)
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2004-12-08 17:58:10 UTC
in 3.3.2 ebuild
Comment 6 Dan Armak (RETIRED) gentoo-dev 2004-12-25 08:32:46 UTC
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.
Comment 7 Dan Armak (RETIRED) gentoo-dev 2004-12-25 09:33:04 UTC
...Or, in case kde does change their format, we could install it into KDE's
directory, but should still have a separate ebuild.
Comment 8 Gregorio Guidi (RETIRED) gentoo-dev 2004-12-26 05:16:12 UTC
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.