-
-
Save worldofpeace/412efbf9b6637f17aea0dc6e9effb15e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/data/meson.build b/data/meson.build | |
index a703ccd..c76537c 100644 | |
--- a/data/meson.build | |
+++ b/data/meson.build | |
@@ -1,11 +1,17 @@ | |
conf_data = configuration_data() | |
conf_data.set('EXEC_PATH', join_paths (get_option('prefix'), get_option('bindir'), meson.project_name())) | |
-dbus = dependency('dbus-1') | |
+dbus_session_bus_services_dir = join_paths(get_option('prefix'), get_option('datadir'), 'dbus-1', 'system-services') | |
+ | |
+dbus = dependency('dbus-1', required: false) | |
+ | |
+if dbus.found() | |
+ dbus_session_bus_services_dir = dbus.get_pkgconfig_variable('session_bus_services_dir') | |
+endif | |
configure_file( | |
input: 'org.elementary.contractor.service.in', | |
output: '@BASENAME@', | |
configuration: conf_data, | |
- install_dir: dbus.get_pkgconfig_variable('session_bus_services_dir') | |
+ install_dir: dbus_session_bus_services_dir | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment