(In reply to Norbert Preining from comment #5)
> I just tried the patch from the second attachment (from Guido) on
> Debian/sid, but it does not fix everything.
> 
> The selected application is now used, but changing the default application
> is still broken. 
> 
> In particular, right clicking on an item I see
>    Open with AAAAA
> but when I right-click -> Properties and check the 
>    Open with 
> droplist, then there is a different value written.
> 
> It seems that another place needs fixing,

I cannot reproduce that here and I don't see how this is possible, the combobox 
in the properties dialog uses a ThunarChooserButton which calls 
g_app_info_get_default_for_type() to preselect the default application. So the 
preselected application in the properties dialog should always be correct and 
reflect what ~/.config/mimeapps.list contains. The context menu is what should 
be fixed by this patch (by calling the g_app_info_get_default_for_type() as the 
combobox does). Have you properly applied the patch before building thunar and 
are you sure you are actually running the rebuilt version?
If yes, then please provide some more detailed information on how to reproduce 
this. In particular, temporarily remove ~/.config/mimeapps.list, log out and 
back in, change the default association of some filetype and then report what 
the context menu shows, what the property dialog combobox has preselected and 
what the contents of ~/.config/mimeapps.list are and what your glib version is.

> or do I need to use *both* of the
> attached patches in this bug?

No, the second one is just a refactored version of the first one.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1382977

Title:
  Thunar open default not respecting mimetype

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunar/+bug/1382977/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to