From b0b282cd4d54cb6fd02848262489df2f30e60b4f Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Mon, 15 Apr 2024 15:13:21 +0100 Subject: [PATCH] Bug fix: AppImage notification not working AppImage new issue notification did not work if run from an extracted AppImage. --- src/main.cc | 2 +- src/preferences.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index f03e1f57..c45856b5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1578,7 +1578,7 @@ gint main(gint argc, gchar *argv[]) { appimage_notification(); } - else if (g_strstr_len(gq_executable_path, -1, "AppRun")) + else if (g_strstr_len(gq_executable_path, -1, "squashfs-root")) { /* Probably running an extracted AppImage */ appimage_notification(); diff --git a/src/preferences.cc b/src/preferences.cc index 381b696f..978ac2a6 100644 --- a/src/preferences.cc +++ b/src/preferences.cc @@ -2228,7 +2228,7 @@ static void config_tab_general(GtkWidget *notebook) pref_spacer(group, PREF_PAD_GROUP); - if (g_getenv("APPDIR") && strstr(g_getenv("APPDIR"), "/tmp/.mount_Geeqie")) + if ((g_getenv("APPDIR") && strstr(g_getenv("APPDIR"), "/tmp/.mount_Geeqie")) || (g_strstr_len(gq_executable_path, -1, "squashfs-root"))) { group = pref_group_new(vbox, FALSE, _("AppImage updates notifications"), GTK_ORIENTATION_VERTICAL); hbox = pref_box_new(group, TRUE, GTK_ORIENTATION_HORIZONTAL, PREF_PAD_SPACE); -- 2.20.1