From 760dc3b93f9fd5709501f1026dba2533ec877680 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 25 Sep 2013 15:06:30 -0500 Subject: use url-dispatcher instead of invoking system-settings directly. --- src/Makefile.am | 1 + src/phone.vala | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 2fc41bb..8311e20 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,6 +18,7 @@ indicator_bluetooth_service_VALAFLAGS = \ --vapidir=./ \ --pkg config \ --pkg rfkill \ + --pkg url-dispatcher \ --pkg posix \ --pkg glib-2.0 \ --pkg gio-2.0 diff --git a/src/phone.vala b/src/phone.vala index e90cd66..f36d175 100644 --- a/src/phone.vala +++ b/src/phone.vala @@ -61,7 +61,7 @@ class Phone: Profile void show_settings (string panel) { - spawn_command_line_async ("system-settings " + panel); + UrlDispatch.send ("settings://system/bluetooth"); } Action create_settings_action () -- cgit v1.2.3