From 0bc9cc467948da9cd749825e70bdd05e9a9f0d97 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 11 Nov 2024 11:42:53 +0600 Subject: [PATCH] fixed config file creation --- source/libublsettings-gtk3.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/libublsettings-gtk3.c b/source/libublsettings-gtk3.c index 56aa994..2161f2e 100644 --- a/source/libublsettings-gtk3.c +++ b/source/libublsettings-gtk3.c @@ -290,7 +290,9 @@ void yon_terminal_integrated_start_shell(GtkWidget *terminal, char* command, voi int yon_window_config_load(char *path){ if(__yon_window_config_target_window){ - if (!access(path,0)){ + if (access(path,0)){ + yon_file_create_full_path(path,0777); + } __yon_window_config_file = g_key_file_new(); __yon_window_config_path=yon_char_new(path); struct passwd *user = getpwnam(yon_ubl_root_user_get()); @@ -348,9 +350,6 @@ void yon_terminal_integrated_start_shell(GtkWidget *terminal, char* command, voi pthread_create(&tid,NULL,(void *)_yon_maximize,NULL); return 1; } - } else { - // g_warning("config file were not loaded properly"); - } return 0; }