[SRU] Thunar open default not respecting mimetype
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Thunar File Manager |
Fix Released
|
Critical
|
|||
thunar (Debian) |
Fix Released
|
Unknown
|
|||
thunar (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Utopic |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[SRU] Thunar open default not respecting mimetype
[Impact]
Thunar does not respect defaults per mimetype. This is an unintended consequence of glib >= 2.41. A patch has been distributed and verified in Debian and Vivid Vervet.
[Test Case]
From Thunar. try opening a file that has several mimetype handlers.
Expected:
Files open with whichever application is registered as its default handler.
Actual:
The file may be opened in an application other than the default.
* Torrents open with Archive Manager instead of Transmission.
* PDFs open in GIMP
[Regression Potential]
None. Fix verified in Debian and Vivid.
=== Original Report ===
A few files are defaulting to the wrong application. Up to date Utopic Xubuntu install, clean installed.
Currently
torrents are defaulting to open with Archive Manager
mp3's are currently defaulting to Easytag.
For mp3 /usr/share/
I have since installed Clementine, Soundconverter and Easytag in that order.
mimeinfo.cache now shows
audio/x-
removing all except clementine makes no difference to what shows on the right click open with menu's
pdf's were defaulting to Gimp. I edited /usr/share/
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: desktop-file-utils 0.22-1ubuntu2
ProcVersionSign
Uname: Linux 3.16.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.14.7-0ubuntu7
Architecture: amd64
CurrentDesktop: XFCE
Date: Sun Oct 19 15:09:58 2014
InstallationDate: Installed on 2014-07-17 (93 days ago)
InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140717)
SourcePackage: desktop-file-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Sean Davis (community): Approve (xubuntu-dev)
- Ubuntu branches: Pending requested
-
Diff: 194 lines (+106/-11)6 files modified.pc/applied-patches (+1/-0)
debian/changelog (+35/-0)
debian/control (+10/-10)
debian/patches/02_fix-default-application-selection.patch (+39/-0)
debian/patches/series (+1/-0)
thunar/thunar-file.c (+20/-1)
affects: | desktop-file-utils (Ubuntu) → thunar (Ubuntu) |
no longer affects: | desktop-file-utils |
Changed in thunar: | |
importance: | Unknown → Critical |
status: | Unknown → Confirmed |
Changed in thunar (Debian): | |
status: | Unknown → New |
description: | updated |
summary: |
- Default open with wrong + Thunar open default not respecting mimetype |
Changed in thunar (Debian): | |
status: | New → Fix Released |
Changed in thunar: | |
status: | Confirmed → Fix Released |
summary: |
- Thunar open default not respecting mimetype + [SRU] Thunar open default not respecting mimetype |
description: | updated |
Beginning with glib >= 2.41, g_app_info_ get_all_ for_type( ) no longer puts the default application in front of the list. (See glib commit 6fd5a8c. [1])
Thunar seems to depend on the removed behavior to correctly pick the default application for the selected file(s), and thus needs to be adjusted to use g_app_info_ get_default_ for_type( ) instead.
I also found a Debian bug report about this with reproduction details. [2]
[1] https:/ /git.gnome. org/browse/ glib/commit/ ?id=6fd5a8c /bugs.debian. org/763726
[2] https:/