From: Colin Clark Date: Mon, 15 Apr 2024 14:13:21 +0000 (+0100) Subject: Bug fix: AppImage notification not working X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=b0b282cd4d54cb6fd02848262489df2f30e60b4f Bug fix: AppImage notification not working AppImage new issue notification did not work if run from an extracted AppImage. --- 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);