|
|
|
|
@ -1529,9 +1529,9 @@ void on_user_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
|
|
|
|
|
int user_home_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->userHomeCombo));
|
|
|
|
|
if (user_home_active==2){
|
|
|
|
|
user_home=yon_char_unite(" --home-dir ",(char*)gtk_entry_get_text(GTK_ENTRY(window->userHomeEntry)),NULL);
|
|
|
|
|
user_home=yon_char_unite("--home-dir ",(char*)gtk_entry_get_text(GTK_ENTRY(window->userHomeEntry)),NULL);
|
|
|
|
|
} else if (user_home_active==0){
|
|
|
|
|
user_home=yon_char_unite(" --home-dir ",main_config.default_home,"/",login,NULL);
|
|
|
|
|
user_home=yon_char_unite("--home-dir ",main_config.default_home,"/",login,NULL);
|
|
|
|
|
} else if (user_home_active==1){
|
|
|
|
|
user_home="--no-create-home";
|
|
|
|
|
} else user_home = "";
|
|
|
|
|
@ -1609,10 +1609,13 @@ void on_user_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
":",yon_char_return_if_exist(additional_groups,"x"),
|
|
|
|
|
":",yon_char_return_if_exist(user_home,""),
|
|
|
|
|
yon_char_return_if_exist(user_shell,""),
|
|
|
|
|
!yon_char_is_empty(user_shell)?" ":"",
|
|
|
|
|
yon_char_return_if_exist(create_system_user,""),
|
|
|
|
|
!yon_char_is_empty(create_system_user)?" ":"",
|
|
|
|
|
yon_char_return_if_exist(create_ununique,""),
|
|
|
|
|
!yon_char_is_empty(create_ununique)?" ":"",
|
|
|
|
|
yon_char_return_if_exist(do_not_check,""),
|
|
|
|
|
!yon_char_is_empty(extra_options)?extra_options:"",
|
|
|
|
|
!yon_char_is_empty(extra_options)?" ":"",
|
|
|
|
|
yon_char_return_if_exist(extra_options,""),
|
|
|
|
|
":",yon_char_return_if_exist(password,""),
|
|
|
|
|
NULL);
|
|
|
|
|
|