[eog: 1/2] Fix discovery of Evince for multi-page images




commit 4dcd51f2d6dc7225178d71bd8e92a3b84b544b91
Author: Krifa75 <yahiaoui fakhri gmail com>
Date:   Wed Mar 16 18:17:51 2022 +0000

    Fix discovery of Evince for multi-page images
    
    Replace "evince.desktop" with "org.gnome.Evince.desktop".
    Otherwise the button to open multi-page files in Evince is never shown.

 src/eog-error-message-area.c | 2 +-
 src/eog-window.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-error-message-area.c b/src/eog-error-message-area.c
index 70618d88..f6bec0ac 100644
--- a/src/eog-error-message-area.c
+++ b/src/eog-error-message-area.c
@@ -326,7 +326,7 @@ _check_evince_availability(gpointer data)
        gboolean result = FALSE;
        GDesktopAppInfo *app_info;
 
-       app_info = g_desktop_app_info_new ("evince.desktop");
+       app_info = g_desktop_app_info_new ("org.gnome.Evince.desktop");
        if (app_info) {
                result = TRUE;
                g_object_unref (app_info);
diff --git a/src/eog-window.c b/src/eog-window.c
index 89187947..d6522c25 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -1340,7 +1340,7 @@ eog_window_error_message_area_response (GtkInfoBar       *message_area,
                GFile *img_file;
                GList *img_files = NULL;
 
-               app_info = g_desktop_app_info_new ("evince.desktop");
+               app_info = g_desktop_app_info_new ("org.gnome.Evince.desktop");
 
                if (app_info) {
                        img_file = eog_image_get_file (window->priv->image);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]