From 2bffe3c078dd8e3d68e27b6c2eacd368aa455a75 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 8 Dec 2019 17:02:02 +0100 Subject: [PATCH] main: add option --no-wizard --- man/terminology.1 | 5 +++++ src/bin/main.c | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/man/terminology.1 b/man/terminology.1 index 3d840f96..868961db 100644 --- a/man/terminology.1 +++ b/man/terminology.1 @@ -162,6 +162,11 @@ Whether to highlight links. Type: BOOL. . .TP +.B \-\-no\-wizard +Do not display the wizard on start up. +Type: BOOL. +. +.TP .B \-V, \-\-version Show program version. . diff --git a/src/bin/main.c b/src/bin/main.c index 90134b29..32e77189 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -504,6 +504,8 @@ static Ecore_Getopt options = { gettext_noop("Set TERM to 'xterm-256color' instead of 'xterm'.")), ECORE_GETOPT_STORE_BOOL('\0', "active-links", gettext_noop("Highlight links.")), + ECORE_GETOPT_STORE_BOOL('\0', "no-wizard", + gettext_noop("Do not display wizard on start up.")), ECORE_GETOPT_VERSION ('V', "version"), ECORE_GETOPT_COPYRIGHT ('C', "copyright"), @@ -798,6 +800,7 @@ elm_main(int argc, char **argv) char *video_module = NULL; Eina_Bool quit_option = EINA_FALSE; Eina_Bool single = EINA_FALSE; + Eina_Bool no_wizard = EINA_FALSE; Eina_Bool cmd_options = EINA_FALSE; Ipc_Instance instance = { .login_shell = 0xff, /* unset */ @@ -837,6 +840,7 @@ elm_main(int argc, char **argv) ECORE_GETOPT_VALUE_BOOL(single), ECORE_GETOPT_VALUE_BOOL(instance.xterm_256color), ECORE_GETOPT_VALUE_BOOL(instance.active_links), + ECORE_GETOPT_VALUE_BOOL(no_wizard), ECORE_GETOPT_VALUE_BOOL(quit_option), ECORE_GETOPT_VALUE_BOOL(quit_option), @@ -908,7 +912,11 @@ elm_main(int argc, char **argv) goto end; } - if (quit_option) goto end; + if (no_wizard) + need_scale_wizard = EINA_FALSE; + + if (quit_option) + goto end; if (cmd_options) {