Access for file check

pull/132/head
parent 61ce9a19ce
commit c8c35799cc
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -250,6 +250,11 @@ void yon_load_proceed(YON_CONFIG_TYPE type){
char *path = NULL;
path=yon_custom_config_init(GTK_FILE_CHOOSER_ACTION_OPEN);
if (!yon_char_is_empty(path)){
if ((access(path,0)==F_OK&&access(path,4)!=F_OK)){
if (yon_status_box_is_set()){
yon_ubl_status_box_render(ACCESS_DENIED_LABEL(path),BACKGROUND_IMAGE_FAIL_TYPE);
}
}
yon_config_clean();
yon_config_load_config(type,config_get_command(path),NULL);
yon_ubl_status_box_render(yon_char_get_localised_from_lib(LOCAL_LOAD_SUCCESS_LABEL),BACKGROUND_IMAGE_SUCCESS_TYPE);

Loading…
Cancel
Save