diff options
Diffstat (limited to 'src/daemon/mnd-daemon.c')
-rw-r--r-- | src/daemon/mnd-daemon.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/daemon/mnd-daemon.c b/src/daemon/mnd-daemon.c index 38a5589..59921c7 100644 --- a/src/daemon/mnd-daemon.c +++ b/src/daemon/mnd-daemon.c @@ -31,6 +31,7 @@ static gboolean debug = FALSE; static gboolean replace = FALSE; +static gboolean idle_exit = FALSE; static GOptionEntry entries[] = { @@ -47,6 +48,12 @@ static GOptionEntry entries[] = NULL }, { + "idle-exit", 'i', G_OPTION_FLAG_NONE, + G_OPTION_ARG_NONE, &idle_exit, + "Auto-exit when idle, useful if run through D-Bus activation", + NULL + }, + { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } }; @@ -95,7 +102,7 @@ int main (int argc, char *argv[]) if (!parse_arguments (&argc, &argv)) return EXIT_FAILURE; - daemon = notify_daemon_new (replace); + daemon = notify_daemon_new (replace, idle_exit); gtk_main(); |