aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-09-25 16:07:05 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-09-25 16:07:05 -0500
commit6621a3d848fd50062f25e95f1787c5084aed0671 (patch)
treebaffafe50bb452e2d207851df93838cada143127 /src/service.vala
parented998103a6375a780dab4ab273f697c8fcac44d2 (diff)
downloadayatana-indicator-sound-6621a3d848fd50062f25e95f1787c5084aed0671.tar.gz
ayatana-indicator-sound-6621a3d848fd50062f25e95f1787c5084aed0671.tar.bz2
ayatana-indicator-sound-6621a3d848fd50062f25e95f1787c5084aed0671.zip
Use url-dispatcher instead of invoking system-settings directly.
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/service.vala b/src/service.vala
index f43a1a1..c7d4809 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -108,11 +108,7 @@ public class IndicatorSound.Service {
}
void activate_phone_settings (SimpleAction action, Variant? param) {
- try {
- Process.spawn_command_line_async ("system-settings sound");
- } catch (Error e) {
- warning ("unable to launch sound settings: %s", e.message);
- }
+ UrlDispatch.send ("settings://system/sound");
}
/* Returns a serialized version of @icon_name suited for the panel */