|
|
|
|
@ -447,10 +447,13 @@ int yon_ubl_setup_arguments(int argc, char *argv[],config_str *unfound_arguments
|
|
|
|
|
if(optarg)
|
|
|
|
|
template_config->load_socket_id=atoi(optarg);
|
|
|
|
|
break;
|
|
|
|
|
case 'c': char *path = yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",template_app_information.app_tech_name,"/",NULL);
|
|
|
|
|
struct passwd *user = getpwnam(yon_ubl_root_user_get());
|
|
|
|
|
if (chown(path,user->pw_uid,user->pw_gid)){};
|
|
|
|
|
if (system(remove_config_dir_command)){};
|
|
|
|
|
case 'c':
|
|
|
|
|
{
|
|
|
|
|
char *path = yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",template_app_information.app_tech_name,"/",NULL);
|
|
|
|
|
struct passwd *user = getpwnam(yon_ubl_root_user_get());
|
|
|
|
|
if (chown(path,user->pw_uid,user->pw_gid)){};
|
|
|
|
|
if (system(remove_config_dir_command)){};
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 'd': template_config->debug_mode=1;
|
|
|
|
|
break;
|
|
|
|
|
|