Summary: | some web shortcuts (e.g. CPAN) are not correctly handled by runner | ||
---|---|---|---|
Product: | [Plasma] krunner | Reporter: | Jonathan Marten <jjm> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Jonathan Marten
2010-06-19 12:20:00 UTC
Aha, just spotted in kdebase/workspace/plasma/generic/runners/webshortcuts/webshortcutrunner.cpp, WebshortcutRunner::searchQuery(const QString &query, const QString &term): // FIXME? currently only basic searches are supported Would replacing WebshortcutRunner::searchQuery() with the following achieve the required result, without any unwanted side effects? QString WebshortcutRunner::searchQuery(const QString &query, const QString &term) { QString q = term; if (!KUriFilter::self()->filterUri(q, QStringList("kurisearchfilter"))) return (QString()); return (q); } Submitted review at http://reviewboard.kde.org/r/4490/ SVN commit 1144555 by marten: Use KUriFilter to expand the query, in order to support complex substitutions. BUG:242156 M +5 -10 webshortcutrunner.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1144555 SVN commit 1144562 by marten: Backport of commit 1144555 to trunk: Use KUriFilter to expand the query, in order to support complex substitutions. BUG:242156 M +5 -10 webshortcutrunner.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1144562 |