Created attachment 548838 [details] xdg-mime Patch In order to get Razor-qt to work correctly, some patches to xdg-mime and xdg-open are required.
Created attachment 548839 [details] xdg-open Patch
The first name of the bug is invalid. The patch does not contain any changes specific for the Razor. Changes are suitable for all "unknown" DE. 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. I attach diffs for source xdg-mime.in & xdg-open.in. And already fixed files for the tests.
Created attachment 549068 [details] xdg-mime.in.diff for comment 2 (2011-12-21 14:02:23)
Created attachment 549069 [details] xdg-open.in.diff for comment 2 (2011-12-21 14:02:23)
Created attachment 549071 [details] Patched xdg-mime for comment 2 (2011-12-21 14:02:23)
Created attachment 549073 [details] Patched xdg-open for comment 2 (2011-12-21 14:02:23)
renamed bug according to Alexanders hint.
sorry for the delay, I'll try to carve out some time today to review your contribution (and thanks! by the way).
patch commited upstream (thanks!), http://cgit.freedesktop.org/xdg/xdg-utils/commit/?id=687127b9cd9c858491fd5e3109a6ad1ab06be396 I'll review a few others, and see about spinning up a build for some testing and feedback.
test build for rawhide, http://koji.fedoraproject.org/koji/taskinfo?taskID=3847653