aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/service.vala6
2 files changed, 2 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a28147d..a61fb72 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -20,6 +20,7 @@ vala_init(indicator-sound-service
--vapidir=${CMAKE_SOURCE_DIR}/vapi/
--vapidir=.
--target-glib=2.36
+ --pkg=url-dispatcher
--pkg=bus-watcher
)
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 */