//check if dir exists
struct stat st = {0};
GString* homedir = g_string_new(NULL);
g_string_append(homedir, getenv("HOME"));
g_string_append(homedir, ".some/qwe");
printf("%s", homedir->str);
if (stat(&homedir->str, &st) == -1) {
int res= mkdir(homedir->str, 0777);
}