From b8000f21f5a9786fde98dbaa1384dc4c695f870b Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 4 Aug 2023 10:36:44 +0600 Subject: [PATCH] Fixed config folder creation --- ubl-utils/ubl-utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ubl-utils/ubl-utils.c b/ubl-utils/ubl-utils.c index de47801..2403ef2 100644 --- a/ubl-utils/ubl-utils.c +++ b/ubl-utils/ubl-utils.c @@ -1525,8 +1525,7 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end if (!g_key_file_load_from_file(__yon_window_config_file,__yon_window_config_path,G_KEY_FILE_NONE,NULL)){ struct stat st; int size; - config_str conf = yon_char_parse(yon_char_new(__yon_window_config_path),&size,"/"); - char *path = yon_char_unite(conf[0],"/",conf[1],"/",conf[2],"/",conf[3],"/",conf[4],"/",NULL); + char *path = yon_char_divide(yon_char_new(__yon_window_config_path),yon_char_find_last(__yon_window_config_path,'/')); if (stat(path, &st) == -1) { mkdir(path, 0777); }