#2 Add default user login to LXDM

closed-wont-fix
nobody
None
5
2010-09-26
2010-06-22
YuriiS
No

When one user use computer and autologin not good idea :

User can change lxdm.conf
defuserlogin=usermane
And when user turn on computer - "username" will be in LXDM entry for user name

File greeter.c

*** 556,561 ****
--- 559,569 ----
prompt = (GtkWidget*)gtk_builder_get_object(builder, "prompt");
login_entry = (GtkWidget*)gtk_builder_get_object(builder, "login_entry");

+ char* defuserlogin;
+ defuserlogin= g_key_file_get_string(var_config, "base", "defuserlogin", NULL);
+ if (defuserlogin == NULL) defuserlogin="";
+ gtk_entry_set_text(GTK_ENTRY(login_entry), defuserlogin);

g_signal_connect(login_entry, "activate", G_CALLBACK(on_entry_activate), NULL);

sessions = (GtkWidget*)gtk_builder_get_object(builder, "sessions");

Discussion

  • dgod.osa
    dgod.osa
    2010-09-26

    thank you for your patch, I don't think it's good idea, user list in 0.3.0 version may better.

     
  • dgod.osa
    dgod.osa
    2010-09-26

    • status: open --> closed-wont-fix