[Xfce-bugs] [Bug 12493] Usage "Open with …" menu item in thunar unexpectedly changes default application for opened file's MIME

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Jul 6 09:34:22 CEST 2016


https://bugzilla.xfce.org/show_bug.cgi?id=12493

xfcebugzilla at firmgently.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xfcebugzilla at firmgently.co.
                   |                            |uk

--- Comment #1 from xfcebugzilla at firmgently.co.uk ---
I noticed the same problem with .jpg files. My default app is Ristretto Image
Viewer. If I use 'open with' to open a .jpg in XnConvert, the default seems to
change (ie. doubleclicking now opens in XnConvert...until I use 'open with'
Ristretto, then Ristretto becomes default). So - same behaviour as already
reported.

However, last night I noticed the behaviour *isn't* happening with some file
types. I can open a .js or a .php file in Atom via the 'open with' flyout, then
afterwards if I doubleclick a .js or .php file it still opens in Pluma (the
default, so in this case default didn't get changed by using 'open with').

ToZ on this thread https://forum.xfce.org/viewtopic.php?pid=42309#p42309
mentions:
"g-app-info-set-as-last-used-for-type which:

    Sets the application as the last used application for a given type. This
will make the application appear as first in the list returned by
g_app_info_get_recommended_for_type(), regardless of the default application
for that content type."

As a blind hypothesis, I wonder if there's a last-used-for-type and a
proper-default-for-type and if proper-default isn't set it falls back to
last-used-for-type?

If so then maybe the behaviour is by-design but just not made very clear? I'm
completely guessing.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list