Fixed saving of ignored parameters

pull/35/head
Ivan Dmitrievich Yartsev 12 months ago
parent 0d71ef0e4d
commit 3d986cc6eb

@ -371,6 +371,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
struct loaded_config *current = NULL;
if (current_loaded){
for_dictionaries(current,current_loaded){
if (!yon_config_check_ignore(current->key)){
dictionary *dict = yon_dictionary_get((dictionary**)&config_compare,current->key);
gboolean status=0;
status = yon_config_get_status(current->key);
@ -394,8 +395,10 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
free(compare_string);
}
}
}
if (config_compare){
for_dictionaries(current,config_compare){
if (!yon_config_check_ignore(current->key)){
GtkTreeIter iter;
dictionary *dict = yon_dictionary_get((dictionary**)&current_loaded,current->key);
if (!dict){
@ -414,6 +417,7 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
}
}
}
}
GtkTreeIter iter;
if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&iter)){
gtk_widget_destroy(window->Window);
@ -744,6 +748,7 @@ void on_root_access(GtkWidget *self, template_main_window *widgets){
}
if (getuid()!=0){
argline = yon_char_unite("setsid /usr/bin/bash -c 'pkexec ",argline,"'; exit",NULL);
printf("%s\n",argline);
pthread_t thread_id;
pthread_create(&thread_id, NULL, (void *)on_root_get_root,argline);
gtk_widget_destroy(widgets->Window);

Loading…
Cancel
Save