Log read error processing

pull/385/head
parent ee55e9d4e4
commit 550384c886

@ -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);

@ -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"

Loading…
Cancel
Save