Bug fix: AppImage notification not working
authorColin Clark <colin.clark@cclark.uk>
Mon, 15 Apr 2024 14:13:21 +0000 (15:13 +0100)
committerColin Clark <colin.clark@cclark.uk>
Mon, 15 Apr 2024 14:13:21 +0000 (15:13 +0100)
AppImage new issue notification did not work if run from an extracted
AppImage.

src/main.cc
src/preferences.cc

index f03e1f5..c45856b 100644 (file)
@@ -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();
index 381b696..978ac2a 100644 (file)
@@ -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);