aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-21 22:22:48 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-21 22:29:14 +0100
commit31f9feab7b064005f9f08917b48d53d56f94d242 (patch)
tree5d97041b7ede9592e739dc099136db1f81911271
parent41bd25e7115d0d2ece922ed0db35f64ef61aaede (diff)
downloadfiv-31f9feab7b064005f9f08917b48d53d56f94d242.tar.gz
fiv-31f9feab7b064005f9f08917b48d53d56f94d242.tar.xz
fiv-31f9feab7b064005f9f08917b48d53d56f94d242.zip
Use the X-GNOME-FullName desktop file key
-rw-r--r--fiv-browse.desktop1
-rw-r--r--fiv-browser.c5
-rw-r--r--fiv.desktop1
3 files changed, 5 insertions, 2 deletions
diff --git a/fiv-browse.desktop b/fiv-browse.desktop
index ac717f9..3d968ef 100644
--- a/fiv-browse.desktop
+++ b/fiv-browse.desktop
@@ -2,6 +2,7 @@
Type=Application
Name=fiv
GenericName=Image Browser
+X-GNOME-FullName=fiv Image Browser
Icon=fiv
Exec=fiv --browse -- %u
NoDisplay=true
diff --git a/fiv-browser.c b/fiv-browser.c
index 1d67e4c..49583c1 100644
--- a/fiv-browser.c
+++ b/fiv-browser.c
@@ -704,8 +704,9 @@ append_opener(GtkWidget *menu, GAppInfo *opener, const OpenContext *template)
ctx->content_type = g_strdup(template->content_type);
ctx->app_info = opener;
- // XXX: Would g_app_info_get_display_name() be any better?
- gchar *name = g_strdup_printf("Open With %s", g_app_info_get_name(opener));
+ // On Linux, this prefers the obsoleted X-GNOME-FullName.
+ gchar *name =
+ g_strdup_printf("Open With %s", g_app_info_get_display_name(opener));
// It's documented that we can touch the child, if we want to use markup.
#if 0
diff --git a/fiv.desktop b/fiv.desktop
index 0353b79..e1cdd13 100644
--- a/fiv.desktop
+++ b/fiv.desktop
@@ -2,6 +2,7 @@
Type=Application
Name=fiv
GenericName=Image Viewer
+X-GNOME-FullName=fiv Image Viewer
Icon=fiv
Exec=fiv -- %u
Terminal=false