1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-02 15:48:59 +00:00
evince/data
Felipe Borges 61a793ba42 desktop: Include "evince" in .desktop keywords
The GNOME Shell search results are forwarded from the results of
GLib's g_desktop_app_info_search() function, which matches the
Name, Exec, Keywords, GenericName, X_GNOME_FullName, and Comment
keys from desktop files[0].

Since Evince is now named "Document Viewer", a query for "evince"
would match the "Exec" key and present the application in the search
results as expected. Unfortunately that doesn't happen for Flaptaked
Evince, which would get its desktop file "Exec" key overwritten to
something such as Exec=/usr/bin/flatpak run --branch=stable
--arch=x86_64 --command=evince org.gnome.Evince --new-document

This way, searching for "evince" when only the Flatpaked version
of it is installed returns no results. Searching for "Document
Viewer" presents the application as expected.

Its been proposed in GLib to parse the "Exec" key for searches
but that was rejected[1] because it would imply establishing an
API which assumes that the command line behavior of Flatpak would
be stable/never-change.

A fix was proposed in Flatpak directly[2] but it was rejected,
leaving us with the only option of adding the historical/legacy
application names to the "Keywords" key in their desktop files.

Many users, such as myself, have the "muscle memory" of search
for the old application's name, such as "evince", "totem", "gedit".
Although I agree that the new names should be presented to new
users and that the old ones shouldn't be visible in UI, it makes
sense and little effort to support the search for the old names IMO.

I proposed the same changes in "gedit"[3].

[0] https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gdesktopappinfo.c#L378
[1] https://gitlab.gnome.org/GNOME/glib/issues/1706
[2] https://github.com/flatpak/flatpak/issues/2749
[3] https://gitlab.gnome.org/GNOME/gedit/merge_requests/44
2019-05-02 11:34:17 +02:00
..
icons icon: update app icon 2019-01-29 12:41:06 +01:00
screenshots Update screenshots to show title 2018-06-05 08:10:41 +01:00
evince.1 Update man page 2013-04-11 10:30:02 +02:00
evince.convert Install a evince.convert file for gsettings-data-convert 2010-05-22 10:43:13 +02:00
evince.ico Add evince icon to the win32 executable 2009-12-22 16:04:15 +01:00
hand-open.png Implement epiphany like toolbar editor. Based on patch by 2005-05-09 12:03:36 +00:00
Makefile.am Revert "shell: Make evinced D-Bus name match application name" 2018-10-07 00:02:00 -03:00
meson.build build: Set Daemon service namespace to lowecase 2018-10-08 00:52:08 -03:00
org.gnome.Evince-previewer.desktop.in.in Revert "Set back D-Bus application name to lowercase" 2018-10-06 23:55:23 -03:00
org.gnome.evince.Daemon.service.in Revert "shell: Make evinced D-Bus name match application name" 2018-10-07 00:02:00 -03:00
org.gnome.Evince.desktop.in.in desktop: Include "evince" in .desktop keywords 2019-05-02 11:34:17 +02:00
org.gnome.Evince.gschema.xml build: Migrate from Intltool to Gettext 2018-09-29 20:02:03 +02:00
org.gnome.Evince.service.in Revert "shell: Make evinced D-Bus name match application name" 2018-10-07 00:02:00 -03:00
thumbnail-frame.png previewer: Add CSS file for EvView styling 2014-08-04 13:42:05 +02:00