|
|
|
@ -529,8 +529,8 @@ char *yon_custom_config_init(GtkFileChooserAction type){
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
char *command_creation = ubconfig_file_create(file);
|
|
|
|
char *command_creation = ubconfig_file_create(file);
|
|
|
|
struct passwd *user = getpwnam(yon_ubl_root_user_get());
|
|
|
|
struct passwd *user = getpwnam(yon_ubl_root_user_get());
|
|
|
|
chown(file,user->pw_uid,user->pw_gid);
|
|
|
|
|
|
|
|
int a = system(command_creation);
|
|
|
|
int a = system(command_creation);
|
|
|
|
|
|
|
|
chown(file,user->pw_uid,user->pw_gid);
|
|
|
|
free(command_creation);
|
|
|
|
free(command_creation);
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
if (access(file,0)!=F_OK){
|
|
|
|
yon_ubl_status_box_render(CUSTOM_CONFIG_CREATION_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_box_render(CUSTOM_CONFIG_CREATION_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|