Bug 403194 - Desktop files could be amalgamated to avoid multiple entries in Gtk App Chooser for Krita
Summary: Desktop files could be amalgamated to avoid multiple entries in Gtk App Choos...
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: 4.1.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 401897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-13 22:55 UTC by Stuart Axon
Modified: 2019-04-16 10:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Many krita entries in Gtk App Chooser (32.22 KB, image/png)
2019-01-13 22:55 UTC, Stuart Axon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Axon 2019-01-13 22:55:45 UTC
Created attachment 117450 [details]
Many krita entries in Gtk App Chooser

In nautilus right click a file, Open With Other Application->View All Applications, there are many Krita entries.

(Same bug will show in other places using the GtkAppChooser, e.g. Firefox).

This occurs because Krita creates one desktop file for each file association.
Desktop files can have a list of mimetypes, so amalgamating these into one desktop file should fix the bug.


Tested on 4.1.7 - since I'm not sure how to setup file associations with the appimage.


See conversation here
https://gitlab.gnome.org/GNOME/gtk/issues/1581#note_407441
Comment 1 Halla Rempt 2019-01-14 12:17:40 UTC
Sorry, but that would be wrong. Every file type is supported by a separate plugin, so that needs to get a separate desktop file.

GTK people just should implement proper support for the freedesktop.org standard (https://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html), notably the NoDisplay=true entry in these desktop files. This has been in the standard for ages. I see from the discussion you linked that they don't want to do that, but as far as I'm concerned they are wrong.
Comment 2 Halla Rempt 2019-04-16 10:10:54 UTC
*** Bug 401897 has been marked as a duplicate of this bug. ***