mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-27 01:41:45 +02:00
lib: use libdbus for client's dbus messaging
Switch the dbus implementation for the client from systemd to libdbus. The main reason is that, in flatpaks systemd is not easily available. No phenomenological change for users of the library, hopefully.
This commit is contained in:
@ -79,15 +79,19 @@ path_libdir = join_paths(path_prefix, get_option('libdir'))
|
||||
path_libexecdir = join_paths(path_prefix, get_option('libexecdir'))
|
||||
|
||||
# Find systemd via pkgconfig
|
||||
with_systemd = get_option('with-systemd')
|
||||
dep_systemd = dependency('libsystemd')
|
||||
|
||||
# For the client, libdbus is used
|
||||
dep_dbus = dependency('dbus-1')
|
||||
|
||||
# Allow meson to figure out how the compiler sets up threading
|
||||
dep_threads = dependency('threads')
|
||||
|
||||
# On non glibc systems this might be a stub, i.e. for musl
|
||||
libdl = cc.find_library('dl', required: false)
|
||||
|
||||
with_systemd = get_option('with-systemd')
|
||||
# Determine the location for the systemd unit
|
||||
if with_systemd == true
|
||||
# If the path isn't explicitly set, ask systemd for the systemd user unit directory
|
||||
path_systemd_unit_dir = get_option('with-systemd-user-unit-dir')
|
||||
|
Reference in New Issue
Block a user