Commit 72d80089 authored by Bastien Nocera's avatar Bastien Nocera

Move default timeout to main binary

Rather than have the default 5 seconds timeout in 2 separate locations,
move the default timeout value to the binary, so as to reduce the
difference between the interactive and non-interactive behaviour, and
reduce confusion.

https://bugs.freedesktop.org/show_bug.cgi?id=106249
parent a5e58851
......@@ -5,4 +5,4 @@ Description=Location Lookup Service
Type=dbus
BusName=org.freedesktop.GeoClue2
User=@dbus_srv_user@
ExecStart=@libexecdir@/geoclue -t 5
ExecStart=@libexecdir@/geoclue
[D-BUS Service]
Name=org.freedesktop.GeoClue2
Exec=@libexecdir@/geoclue -t 5
Exec=@libexecdir@/geoclue
User=@dbus_srv_user@
SystemdService=geoclue.service
......@@ -33,7 +33,7 @@
/* Commandline options */
static gboolean version = FALSE;
static gint inactivity_timeout = 0;
static gint inactivity_timeout = 5;
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. Default: 0 (never)"),
N_("Exit after T seconds of inactivity, 0 for never. Default: 5"),
"T" },
{ "submit-data",
's',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment