FS#33959 - [easytag] desktop file for easytag 2.18 is getting over Nautilus when plugging USB HDD

Attached to Project: Arch Linux
Opened by Frederic Bezies (fredbezies) - Thursday, 21 February 2013, 13:41 GMT
Last edited by Guillaume ALAUX (galaux) - Tuesday, 25 November 2014, 12:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Guillaume ALAUX (galaux)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: I faced a bug after I installed easytag 2.18.

When I plugged my USB HDD, Gnome-Shell asked me if I want to open it with easytag instead of Nautilus.

I found that easytag.desktop file is having a too "powerful" Mimetype line :

Here is what I found in easytag.desktop.in :

MimeType=x-directory/normal;inode/directory;audio/x-mp3;audio/x-mpeg;audio/mpeg;application/ogg;audio/x-vorbis+ogg;audio/x-flac;audio/x-musepack;audio/x-ape;

Removing x-directory/normal;inode/directory; from /usr/share/applications/easytag.desktop and then running update-desktop-database -q fixes the problem.

I reported it upstream -> https://bugzilla.gnome.org/show_bug.cgi?id=694358

Could you modify easytag.desktop.in until it is modified upstream ? Thanks.

Additional info:
easytag 2.1.8-1

Steps to reproduce:
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Tuesday, 25 November 2014, 12:48 GMT
Reason for closing:  Upstream
Additional comments about closing:  Upstream should not ship "inode/directory" in its .desktop file if soft is not a file manager
Comment by Guillaume ALAUX (galaux) - Saturday, 23 February 2013, 19:58 GMT
Already fixed in -2.
Comment by Frederic Bezies (fredbezies) - Wednesday, 22 October 2014, 16:08 GMT
  • Field changed: Percent Complete (100% → 0%)
Sorry to ask for reopen, bug easytag 2.2.4 is doing the same bad behavior.

Here is what I see in easytag.desktop :
MimeType=inode/directory;audio/x-mp3;audio/x-mpeg;audio/mpeg;application/ogg;audio/x-vorbis+ogg;audio/x-flac;audio/x-musepack;audio/x-ape;audio/x-speex+ogg;audio/x-opus+ogg;

It is again fighting with nautilus to open USB keys and USB HDDs.
Comment by Frederic Bezies (fredbezies) - Wednesday, 22 October 2014, 16:15 GMT
I had to rebuild Easytag 2.2.4 with this workaround from AUR easytag-git package in order to skip easytag to manage USB keys / USB HDDs.

sed -i 's/MimeType=inode\/directory;/MimeType=/' data/easytag.desktop.in
Comment by Guillaume ALAUX (galaux) - Sunday, 02 November 2014, 15:12 GMT
I have read your bug report to upstream but I do not think 'inode/directory' should belong to this desktop file. As any desktop providing package, Arch Linux package for Easytag calls 'update-desktop-database -q' after install. As it seems there is no way to setup priority in app handling a mime type, every app using 'inode/directory' will thus override the previous one declared as such. I totally understand upstream's point but there is no way for a WM to prevent this behavior.

To backup my point, see this discussion about the exact same issue in 2012 for "RawTherapee" [0] in which upstream aggreed to remove 'inode/directory' from its desktop file.

[0] https://code.google.com/p/rawtherapee/issues/detail?id=1398

Loading...