X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/820934c1774e4a0f9a54a8e1d704cc6f63e2fe8b..7bfc5fd0ba781cf9ae34393dc4765e4506ee3157:/unix/gtkwin.c diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 76f78f69..920d7fe0 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -155,6 +155,8 @@ Filename platform_default_filename(const char *name) char *platform_default_s(const char *name) { + if (!strcmp(name, "SerialLine")) + return dupstr("/dev/ttyS0"); return NULL; } @@ -3444,7 +3446,7 @@ int pt_main(int argc, char **argv) cmdline_run_saved(&inst->cfg); - if (!*inst->cfg.host && !cfgbox(&inst->cfg)) + if (!cfg_launchable(&inst->cfg) && !cfgbox(&inst->cfg)) exit(0); /* config box hit Cancel */ }