meson_post_install.py: Correct path to dbus-daemon-launch-helper

It's installed in the ${libexecdir} for both Autotools and Meson.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2022-06-27 15:41:04 +01:00
parent 6eefa5da34
commit 6f6fd74a31
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ def to_destdir(path):
###############################################################################
# Define paths here
abs_libdir = destdir_prefix / get_option('libdir')
abs_libexecdir = destdir_prefix / get_option('libexecdir')
relocation = sys.argv[1].lower() == 'true'
@ -88,7 +88,7 @@ def post_install_exe():
if daemon_launch_helper:
import grp
exe_name = os.path.basename(daemon_launch_helper['install_filename'][0])
exe_path = abs_libdir / 'dbus-1.0' / exe_name
exe_path = abs_libexecdir / exe_name
dbus_user = get_option('dbus_user')
if os.getuid() == 0:
os.chown(exe_path, 0, grp.getgrnam(dbus_user).gr_gid)