fixed config file creation

pull/28/head
parent 2b854019c1
commit 0bc9cc4679

@ -290,7 +290,9 @@ void yon_terminal_integrated_start_shell(GtkWidget *terminal, char* command, voi
int yon_window_config_load(char *path){ int yon_window_config_load(char *path){
if(__yon_window_config_target_window){ 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_file = g_key_file_new();
__yon_window_config_path=yon_char_new(path); __yon_window_config_path=yon_char_new(path);
struct passwd *user = getpwnam(yon_ubl_root_user_get()); 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); pthread_create(&tid,NULL,(void *)_yon_maximize,NULL);
return 1; return 1;
} }
} else {
// g_warning("config file were not loaded properly");
}
return 0; return 0;
} }

Loading…
Cancel
Save