summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeshan Ali <zeenix@collabora.co.uk>2018-09-17 22:41:57 +0200
committerZeeshan Ali <zeenix@collabora.co.uk>2018-10-13 18:40:49 +0200
commit2e4057ae8cb9d8190fbf36c99e64c23d67a5c4c6 (patch)
treee53717dda813762f2b7a17d73f60dbdf4ab70689
parent652e44f13effb9fc7500c80a8f9d6f953a168479 (diff)
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.
-rw-r--r--src/gclue-main.c4
1 files 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',