From 9aeb326f30d0c74129a3dfe5bc771a1441cf8322 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Thu, 19 Feb 2026 14:55:42 +0600 Subject: [PATCH] Test fix for crash --- source/ubinstall-gtk-log.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/ubinstall-gtk-log.c b/source/ubinstall-gtk-log.c index 81de549..798880d 100644 --- a/source/ubinstall-gtk-log.c +++ b/source/ubinstall-gtk-log.c @@ -129,9 +129,11 @@ gboolean yon_progress_bar_start(main_window *widgets){ widgets->install_info_monitor = g_file_monitor_file(file_desc,G_FILE_MONITOR_NONE,NULL,NULL); g_signal_connect(G_OBJECT(widgets->install_info_monitor),"changed",G_CALLBACK(yon_installation_progress_update),widgets); g_object_unref(file_desc); - FILE *file = fopen(progress_path,"w"); - if (file){ - fclose(file); + if (access(progress_path,F_OK)){ + FILE *file = fopen(progress_path,"w"); + if (file){ + fclose(file); + } } return G_SOURCE_REMOVE; } \ No newline at end of file