diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-10-20 18:37:47 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-10-20 18:55:34 +0200 |
commit | c0a46d58623be6ae182bca8b694364c3e2de1ef5 (patch) | |
tree | 5210ece464a2038141397004b3baba8ada073c90 /src/totem-menu.c | |
parent | 7618d6fb27d9e4ed870169b96c81a2243df2348b (diff) | |
download | totem-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.c | 3 |
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') |