summaryrefslogtreecommitdiff
path: root/src/totem-menu.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-10-20 18:37:47 +0200
committerBastien Nocera <hadess@hadess.net>2014-10-20 18:55:34 +0200
commitc0a46d58623be6ae182bca8b694364c3e2de1ef5 (patch)
tree5210ece464a2038141397004b3baba8ada073c90 /src/totem-menu.c
parent7618d6fb27d9e4ed870169b96c81a2243df2348b (diff)
downloadtotem-c0a46d58623be6ae182bca8b694364c3e2de1ef5.tar.gz
main: Re-implement command-line handling
Instead of implementing command-line parsing ourselves, use the "handle-local-options" signal along with g_application_add_main_option_entries() to parse command-line options. Command-line options that work with a remote primary instance will be passed over D-Bus with the "remote-command" action.
Diffstat (limited to 'src/totem-menu.c')
-rw-r--r--src/totem-menu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/totem-menu.c b/src/totem-menu.c
index 76a4a153d..89a21427b 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -277,6 +277,9 @@ remote_command_cb (GSimpleAction *action,
const char *url;
totem = TOTEM_OBJECT (user_data);
+
+ g_application_activate (G_APPLICATION (totem));
+
g_variant_get (parameter, "(i&s)", &cmd, &url);
if (url && *url == '\0')