From 110938de2ceff2ddc80723630e755dfaca12f6c9 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Mon, 17 Sep 2018 22:41:57 +0200 Subject: service: Increase default inactivity timeout to 60s instead of 5 seconds. 5s is very short amount of time when system is very loaded and during startup of a desktop session. There is not harm in waiting 60s anyway. Also, the default value should be longer than the agent registeration timeout, which is currently 100ms but will be increased to 20s in a following patch. --- src/gclue-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gclue-main.c b/src/gclue-main.c index 55db069..d5a01fe 100644 --- a/src/gclue-main.c +++ b/src/gclue-main.c @@ -33,7 +33,7 @@ /* Commandline options */ static gboolean version = FALSE; -static gint inactivity_timeout = 5; +static gint inactivity_timeout = 60; static gboolean submit_data = FALSE; static char *submit_nick = NULL; @@ -51,7 +51,7 @@ static GOptionEntry entries[] = 0, G_OPTION_ARG_INT, &inactivity_timeout, - N_("Exit after T seconds of inactivity, 0 for never. Default: 5"), + N_("Exit after T seconds of inactivity, 0 for never. Default: 60"), "T" }, { "submit-data", 's', -- cgit v1.2.1