aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt11
-rw-r--r--src/service.vala1
2 files changed, 11 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index c11ec51..7efb2a5 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,6 +6,15 @@
set(HEADER_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.h")
set(SYMBOLS_PATH "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound-service.def")
+vapi_gen(accounts-service
+ LIBRARY
+ accounts-service
+ PACKAGES
+ gio-2.0
+ INPUT
+ /usr/share/gir-1.0/AccountsService-1.0.gir
+)
+
vala_init(indicator-sound-service
PACKAGES
config
@@ -20,9 +29,9 @@ vala_init(indicator-sound-service
--thread
--vapidir=${CMAKE_SOURCE_DIR}/vapi/
--vapidir=.
- --target-glib=2.36
--pkg=url-dispatcher
--pkg=bus-watcher
+ --pkg=accounts-service
)
vala_add(indicator-sound-service
diff --git a/src/service.vala b/src/service.vala
index f7d86bb..a246758 100644
--- a/src/service.vala
+++ b/src/service.vala
@@ -87,6 +87,7 @@ public class IndicatorSound.Service {
uint player_action_update_id;
Notify.Notification notification;
bool syncing_preferred_players = false;
+ Act.UserManager account_manager = Act.UserManager.get_default();
const double volume_step_percentage = 0.06;