Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
GH-72: Don't show the username on the dialog
Browse files Browse the repository at this point in the history
This causes startup hangs for some users.

I've been unable to determine a way to ask Windows for
a reasonable guess of the username that is not going to
go to the network.
  • Loading branch information
FauxFaux committed Jul 14, 2013
1 parent b4ef1eb commit 909ca13
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions config.c
Expand Up @@ -1972,20 +1972,13 @@ void setup_config_box(struct controlbox *b, int midsession,
HELPCTX(connection_username),
conf_editbox_handler, I(CONF_username), I(1));
{
/* We assume the local username is sufficiently stable
* to include on the dialog box. */
char *user = get_username();
char *userlabel = dupprintf("Use system username (%s)",
user ? user : "");
sfree(user);
ctrl_radiobuttons(s, "When username is not specified:", 'n', 4,
HELPCTX(connection_username_from_env),
conf_radiobutton_handler,
I(CONF_username_from_env),
"Prompt", I(FALSE),
userlabel, I(TRUE),
"Use system username", I(TRUE),
NULL);
sfree(userlabel);
}

s = ctrl_getset(b, "Connection/Data", "term",
Expand Down

0 comments on commit 909ca13

Please sign in to comment.