# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1592948214 0 # Node ID c3f088266bcd447ffc8fd5a6ee2863a62727b1c1 # Parent 37060de79102cd66082ed12d8f81647ee6d851eb GTK: Remove access() test for the image file in dw_notiication_new(). This test was sometimes failing incorrectly, and since we switched to using g_file_load_bytes() the test is no longer required. diff -r 37060de79102 -r c3f088266bcd gtk/dw.c --- a/gtk/dw.c Tue Jun 23 09:37:37 2020 +0000 +++ b/gtk/dw.c Tue Jun 23 21:36:54 2020 +0000 @@ -12385,8 +12385,7 @@ g_notification_set_body(notification, outbuf); } - /* check if we can read from this file (it exists and read permission) */ - if(imagepath && access(imagepath, 04 ) != 0) + if(imagepath) { GFile *file = g_file_new_for_path(imagepath); GBytes *bytes = g_file_load_bytes(file, NULL, NULL, NULL); diff -r 37060de79102 -r c3f088266bcd gtk3/dw.c --- a/gtk3/dw.c Tue Jun 23 09:37:37 2020 +0000 +++ b/gtk3/dw.c Tue Jun 23 21:36:54 2020 +0000 @@ -11090,8 +11090,7 @@ g_notification_set_body(notification, outbuf); } - /* check if we can read from this file (it exists and read permission) */ - if(imagepath && access(imagepath, 04 ) != 0) + if(imagepath) { GFile *file = g_file_new_for_path(imagepath); GBytes *bytes = g_file_load_bytes(file, NULL, NULL, NULL);