void launch_duplicate_session(Conf *conf)
{
- assert(conf_launchable(conf));
+ extern const int dup_check_launchable;
+ assert(!dup_check_launchable || conf_launchable(conf));
new_session_window(conf, NULL);
}
block_signal(SIGPIPE, 1);
if (argc > 1 && !strncmp(argv[1], "---", 3)) {
+ extern const int dup_check_launchable;
+
read_dupsession_data(conf, argv[1]);
/* Splatter this argument so it doesn't clutter a ps listing */
smemclr(argv[1], strlen(argv[1]));
- assert(conf_launchable(conf));
+ assert(!dup_check_launchable || conf_launchable(conf));
need_config_box = FALSE;
} else {
/* By default, we bring up the config dialog, rather than launching
const char *const appname = "pterm";
const int use_event_log = 0; /* pterm doesn't need it */
const int new_session = 0, saved_sessions = 0; /* or these */
+const int dup_check_launchable = 0; /* no need to check host name in conf */
const int use_pty_argv = TRUE;
Backend *select_backend(Conf *conf)
static int got_host = 0;
const int use_event_log = 1, new_session = 1, saved_sessions = 1;
+const int dup_check_launchable = 1;
int process_nonoption_arg(const char *arg, Conf *conf, int *allow_launch)
{