Similarly to Thunar , xfdesktop needs a minor adjustment to account for the behavior change of g_app_info_get_all_for_type() in glib >= 2.41. (It no longer puts the default application in front of the list.)
As it currently stands, the applications are ordered as returned by g_app_info_get_all_for_type() and the first application might not be the default; though double clicking will correctly launch the default app.
The relevant code is in src/xfdesktop-file-icon-manager.c.
Created attachment 5753
Default application not respected with glib >= 2.41
Oh right, you did mention that xfdesktop would need it to. Is this patch sufficient? It's just thunar's patch stuffed in xfdesktop.
(In reply to Eric Koegel from comment #1)
> Created attachment 5753
> Default application not respected with glib >= 2.41
> Oh right, you did mention that xfdesktop would need it to. Is this patch
> sufficient? It's just thunar's patch stuffed in xfdesktop.
The patch fixes the issue. Thanks!
Thanks for verifying it.
Author: Eric Koegel <email@example.com>
Date: Sun Nov 16 16:35:26 2014 +0300
Default application not respected with glib >= 2.41 (Bug #11306)
Ensure xfdesktop's right click menu has the default
application as the first element of the returned list. This is
just a copy of Thunar's patch adapted for xfdesktop. See: