If the scripts knows DE, it uses DE-specific tools like kde-open or gvfs-open. So all trubles occur when DE was not detected. 1. Improvement in xdg-mime The defapp_fallback function searches default application only in the ~/.local/share/applications/defaults.list. I added the defapp_fallback that recurse scans .desktop files in $XDG_DATA_DIRS/applications and search deafult app based on InitialPreference line. The algorithm is similar KDE. 2. Improvement in xdg-open The open_generic_xdg_mime The function does not search .desktop files recursively. I added a recursive search. https://bugzilla.redhat.com/show_bug.cgi?id=769305
Created attachment 56737 [details] [review] Fix for 45295 bug.
The previous file was a mistake. Here's a corrected patch.
thanks, a cursory review looks good, so I committed as-is for now. Let's see how it works in practice. :) http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=687127b9cd9c858491fd5e3109a6ad1ab06be396
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.