From 6fbf55c280e54667fbc7dd615eedee114e6264d1 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Sun, 3 Sep 2023 10:40:06 +0800 Subject: Fix meson build libexecdir to the correct path Fix https://github.com/mate-desktop/mate-polkit/issues/74 --- meson.build | 1 + src/meson.build | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 2dac299..cc10ed9 100644 --- a/meson.build +++ b/meson.build @@ -15,6 +15,7 @@ gettext_package = meson.project_name() prefix = get_option('prefix') datadir = join_paths(prefix, get_option('datadir')) sysconfdir = join_paths(prefix, get_option('sysconfdir')) +libexecdir = join_paths(prefix, get_option('libexecdir')) # Dependencies glib_dep = dependency('glib-2.0', version : glib_version) diff --git a/src/meson.build b/src/meson.build index 0a56598..63c14e2 100644 --- a/src/meson.build +++ b/src/meson.build @@ -27,13 +27,13 @@ executable('polkit-mate-authentication-agent-1', include_directories : config_inc, c_args : c_args + ['-DPOLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE'] + ['-DHAVE_CONFIG_H'], install : true, - install_dir: get_option('libexecdir') + install_dir: libexecdir ) # .desktop file desktop_data = configuration_data() -desktop_data.set('FULL_LIBEXECDIR', get_option('libexecdir')) +desktop_data.set('FULL_LIBEXECDIR', libexecdir) desktop_in_file = configure_file( input : 'polkit-mate-authentication-agent-1.desktop.in.in', output : 'polkit-mate-authentication-agent-1.desktop.in', -- cgit v1.2.1