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