diff options
Diffstat (limited to 'src/remmina.c')
-rw-r--r-- | src/remmina.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/remmina.c b/src/remmina.c index 6db94cf32..cba60f8d3 100644 --- a/src/remmina.c +++ b/src/remmina.c @@ -81,6 +81,7 @@ static int gcrypt_thread_initialized = 0; #endif /* HAVE_LIBGCRYPT */ gboolean kioskmode; +gboolean disablenews; static GOptionEntry remmina_options[] = { @@ -121,6 +122,7 @@ static GOptionEntry remmina_options[] = // TRANSLATORS: Shown in terminal. Do not use characters that may be not supported on a terminal { "set-option", 0, 0, G_OPTION_ARG_STRING_ARRAY, NULL, N_("Set one or more profile settings, to be used with --update-profile"), NULL }, { "encrypt-password", 0, 0, G_OPTION_ARG_NONE, NULL, N_("Encrypt a password"), NULL }, + { "disable-news", 0, 0, G_OPTION_ARG_NONE, NULL, N_("Disable news notification"), NULL }, { NULL } }; @@ -156,6 +158,10 @@ static gint remmina_on_command_line(GApplication *app, GApplicationCommandLine * opts = g_application_command_line_get_options_dict(cmdline); + if (g_variant_dict_lookup_value(opts, "disable-news", NULL)) { + disablenews = TRUE; + } + if (g_variant_dict_lookup_value(opts, "quit", NULL)) { remmina_exec_command(REMMINA_COMMAND_EXIT, NULL); executed = TRUE; |