Unlike other distribution, shared-mime-info on gentoo doesnt' provide a /usr/share/applications/defaults.list so xdg-mime could not work. I donno yet how to deal with that. $ export XDG_UTILS_DEBUG_LEVEL=4 $ xdg-mime query default text/mathml Checking /home/genesis/.local/share//applications/defaults.list Checking /usr/local/share/applications/defaults.list Checking /usr/share/applications/defaults.list Checking /usr/share/gdm/applications/defaults.list no one of this file are created. Provide a defaults.list or generated it at installation time will make xdg working. http://bugs.gentoo.org/show_bug.cgi?id=289374 patch doesn't solve the problem since it's not the xdg-utils that should provide the file.But it can be considered as a related bug. I wonder what do the freedesktop team here think about that. Reproducible: Always
Created attachment 218429 [details] the /usr/share/applications/defaults.list from shared-mime-info fedora rpm add this solve the "bug"
And how do you suggest we deal with different desktops ? shared-mime-info is a freedesktop project and should not assume a default that is specific to one desktop or another, it wouldn't be fair.
Perharps we can rename this defaults.list to gnome-defaults.list and write a EWARN message to inform administrator to link/rename it to /usr/share/applications/defaults.list or in the right XDG place of its users. Ideas are welcome !
no