summaryrefslogtreecommitdiff
path: root/data/org.gnome.Totem.desktop.in.in
diff options
context:
space:
mode:
authorFelipe Borges <felipeborges@gnome.org>2019-05-02 11:41:15 +0200
committerBastien Nocera <hadess@hadess.net>2019-07-12 09:48:37 +0000
commitf98e93d20d4938d013a00ba69b9d58577b24a1c4 (patch)
treebbf94d960f81ee4714a412e77b99ea42248a75a3 /data/org.gnome.Totem.desktop.in.in
parentb8b8a54112fb5a82bc6b68d243e0b68ba9bf4b04 (diff)
downloadtotem-f98e93d20d4938d013a00ba69b9d58577b24a1c4.tar.gz
desktop: Include "totem" 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 Totem is now named "Videos", a query for "totem" would match the "Exec" key and present the application in the search results as expected. Unfortunately that doesn't happen for Flaptaked Totem, which would get its desktop file "Exec" key overwritten to something such as Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=totem org.gnome.Totem --new-document This way, searching for "totem" when only the Flatpaked version of it is installed returns no results. Searching for "Videos" 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 "totem", "gedit", "evince". 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. [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
Diffstat (limited to 'data/org.gnome.Totem.desktop.in.in')
-rw-r--r--data/org.gnome.Totem.desktop.in.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/org.gnome.Totem.desktop.in.in b/data/org.gnome.Totem.desktop.in.in
index 61ec6ae7b..74d771f45 100644
--- a/data/org.gnome.Totem.desktop.in.in
+++ b/data/org.gnome.Totem.desktop.in.in
@@ -1,8 +1,8 @@
[Desktop Entry]
Name=Videos
Comment=Play movies
-# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
-Keywords=Video;Movie;Film;Clip;Series;Player;DVD;TV;Disc;
+# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Do NOT translate or remove the application name from the list! It is used for search.
+Keywords=Video;Movie;Film;Clip;Series;Player;DVD;TV;Disc;Totem;
Exec=totem %U
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Totem