diff --git a/source/ubinstall-gtk-log.c b/source/ubinstall-gtk-log.c index ef85cce..636508c 100644 --- a/source/ubinstall-gtk-log.c +++ b/source/ubinstall-gtk-log.c @@ -166,7 +166,12 @@ void yon_installation_progress_update(GFileMonitor *,GFile *,GFile *,GFileMonito gboolean yon_progress_bar_start(main_window *widgets){ GFile *file_desc = g_file_new_for_path(progress_path); - widgets->install_info_monitor = g_file_monitor_file(file_desc,G_FILE_MONITOR_NONE,NULL,NULL); + GError *err = NULL; + widgets->install_info_monitor = g_file_monitor_file(file_desc,G_FILE_MONITOR_NONE,NULL,&err); + if (err){ + printf("%s\n",err->message); + return G_SOURCE_REMOVE; + } g_signal_connect(G_OBJECT(widgets->install_info_monitor),"changed",G_CALLBACK(yon_installation_progress_update),widgets); // g_thread_new("progress",(GThreadFunc)yon_progress_thread_test,widgets); g_object_unref(file_desc);