Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578848 - x11-misc/xdg-utils-1.1.1 xdg-mime query default fails with ktraderclient5 from kde-plasma/kde-cli-tools
Summary: x11-misc/xdg-utils-1.1.1 xdg-mime query default fails with ktraderclient5 fro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-02 15:29 UTC by Mike Gilbert
Modified: 2016-04-29 09:18 UTC (History)
1 user (show)

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 Mike Gilbert gentoo-dev 2016-04-02 15:29:58 UTC
This manifests in google-chrome, which thinks it is not the default browser.

floppym@naomi ~ % xdg-mime default google-chrome.desktop text/html
floppym@naomi ~ % xdg-mime query default text/html  

I would expect to see "google-chrome.desktop" as the result; instead I get no results.
Comment 1 Mike Gilbert gentoo-dev 2016-04-02 15:36:34 UTC
It looks like defapp_kde() calls ktraderclient5 and pipes the output through a series of commands:

>        trader_result=`$KTRADER $MIMETYPE "$MIME" $SERVICETYPE Application 2>/dev/null \
>            | grep DesktopEntryPath | head -n 1 | cut -d ':' -f 2 | cut -d \' -f 2`

These commands seem to be designed to deal with the complex output produced by ktraderclient4. ktraderclient5 has much simpler output:

> floppym@naomi ~ % /usr/bin/ktraderclient5 --mimetype text/html --servicetype Application
> mimetype is : text/html
> servicetype is : Application
> got 8 offers.
> /usr/share/applications/google-chrome.desktop
> /usr/share/applications/google-chrome-unstable.desktop
> /usr/share/applications/google-chrome-beta.desktop
> /usr/share/applications/chromium-browser-chromium.desktop
> /usr/share/applications/firefox.desktop
> /usr/share/applications/pgadmin3.desktop
> /usr/share/applications/org.kde.kwrite.desktop
> /usr/share/applications/gvim.desktop
Comment 2 Alexandre 2016-04-04 03:25:52 UTC
I am experiencing the exactly behaviour same with Opera.
Comment 3 Johannes Huber (RETIRED) gentoo-dev 2016-04-29 09:18:46 UTC
Thanks. This should be fixed in -r1 now.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3b38d66963fc2bc0f0a2c278621d38d275b0082