From 550384c886b5806dd25b3572cb4f62161789ebf8 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Tue, 14 Apr 2026 18:01:34 +0600 Subject: [PATCH] Log read error processing --- source/ubinstall-gtk-log.c | 6 +++++- source/ubinstall-gtk.h | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/ubinstall-gtk-log.c b/source/ubinstall-gtk-log.c index dd183c4..ef85cce 100644 --- a/source/ubinstall-gtk-log.c +++ b/source/ubinstall-gtk-log.c @@ -96,7 +96,11 @@ void on_process_log_view(GtkWidget *,main_window *widgets){ yon_gtk_window_setup(GTK_WINDOW(window->Window),NULL,INSTALL_LOG_LABEL,icon_path,"log_viewer"); window->command = yon_char_new(short_log_path); GFile *file = g_file_new_for_path(window->command); - window->monitor = g_file_monitor_file(file,G_FILE_MONITOR_NONE,NULL,NULL); + GError *err = NULL; + window->monitor = g_file_monitor_file(file,G_FILE_MONITOR_NONE,NULL,&err); + if (err){ + printf("%s\n",err->message); + } g_signal_connect(G_OBJECT(window->monitor),"changed",G_CALLBACK(yon_read_log),window); g_object_unref(file); yon_read_log(NULL,NULL,NULL,G_FILE_MONITOR_EVENT_CHANGED,window); diff --git a/source/ubinstall-gtk.h b/source/ubinstall-gtk.h index c474948..fac5416 100755 --- a/source/ubinstall-gtk.h +++ b/source/ubinstall-gtk.h @@ -307,8 +307,6 @@ layout && /description:/ {\ #define PASSWORD_DEFAULT "ublinux" -#define start_fast_install_command "/usr/bin/bash -c \"ubinstall --autoinstall\"" - #define progress_path "/var/log/ubinstall_progress.log" #define password_limits_path "/etc/security/pwquiality.conf"