aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 21:47:26 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-28 20:27:35 +0200
commitbc163bb16505f6b9aef05173d868e5f60edcc504 (patch)
tree66ba5076af6e6617194f2f043e8ff840a08b0ac8
parent894e629e60e3b399851405effb60cf76ef0e3345 (diff)
downloadayatana-indicator-sound-bc163bb16505f6b9aef05173d868e5f60edcc504.tar.gz
ayatana-indicator-sound-bc163bb16505f6b9aef05173d868e5f60edcc504.tar.bz2
ayatana-indicator-sound-bc163bb16505f6b9aef05173d868e5f60edcc504.zip
data/CMakeLists.txt: Don't install org.ayatana.AccountsService.Sound.xml on Ubuntu(-derived) systems.
-rw-r--r--data/CMakeLists.txt36
1 files changed, 22 insertions, 14 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index b99fff4..47d5676 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -153,20 +153,28 @@ DESTINATION "${POLKIT_LIB_DIR}/localauthority/10-vendor.d"
# Accounts Service Iface: Greeter Sound
#######################################
-install(FILES org.ayatana.AccountsService.Sound.xml
- DESTINATION "${DBUS_IFACE_DIR}"
-)
+if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.AccountsService.Sound.xml")
-# Create accountsservice symlink for above dbus interface
-install(CODE "
- execute_process(COMMAND mkdir -p \"\$ENV{DESTDIR}${ACCOUNTS_IFACE_DIR}\")
- execute_process(COMMAND ln -sf ../../dbus-1/interfaces/org.ayatana.AccountsService.Sound.xml \"\$ENV{DESTDIR}${ACCOUNTS_IFACE_DIR}\")
-")
+ # Nothing to do here...
+ # Using files from Ubuntu specific package 'accountsservice-ubuntu-schemas'.
-install(FILES org.ayatana.AccountsService.Sound.policy
-DESTINATION "${POLKIT_DATA_DIR}/actions"
-)
+else()
-install(FILES 50-org.ayatana.AccountsService.Sound.pkla
-DESTINATION "${POLKIT_LIB_DIR}/localauthority/10-vendor.d"
-)
+ install(FILES org.ayatana.AccountsService.Sound.xml
+ DESTINATION "${DBUS_IFACE_DIR}"
+ )
+
+ # Create accountsservice symlink for above dbus interface
+ install(CODE "
+ execute_process(COMMAND mkdir -p \"\$ENV{DESTDIR}${ACCOUNTS_IFACE_DIR}\")
+ execute_process(COMMAND ln -sf ../../dbus-1/interfaces/org.ayatana.AccountsService.Sound.xml \"\$ENV{DESTDIR}${ACCOUNTS_IFACE_DIR}\")
+ ")
+
+ install(FILES org.ayatana.AccountsService.Sound.policy
+ DESTINATION "${POLKIT_DATA_DIR}/actions"
+ )
+
+ install(FILES 50-org.ayatana.AccountsService.Sound.pkla
+ DESTINATION "${POLKIT_LIB_DIR}/localauthority/10-vendor.d"
+ )
+endif() \ No newline at end of file