Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLitecoinZ <team@litecoinz.info>2022-03-23 17:21:55 +0300
committerLitecoinZ <team@litecoinz.info>2022-03-23 17:21:55 +0300
commit75fb63aecc934151f505bfc723af39dbd9b06113 (patch)
tree3d1d19fbf6c44b305d3fef2e946839b82fb9952d /src/remmina.c
parentcdf509d999e5c2e3785b05edaf9ab75a1ec460b3 (diff)
Add '--disable-news' command-line option
Diffstat (limited to 'src/remmina.c')
-rw-r--r--src/remmina.c6
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;