summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-09-03 10:40:06 +0800
committerLuke from DC <[email protected]>2023-09-03 04:27:00 +0000
commit6fbf55c280e54667fbc7dd615eedee114e6264d1 (patch)
treeb93964e66a27b0ac49ef4bc932c21abe0a9b0e77
parent4b078a16e961f2f38478377cfb419b49b5582c1a (diff)
downloadmate-polkit-6fbf55c280e54667fbc7dd615eedee114e6264d1.tar.bz2
mate-polkit-6fbf55c280e54667fbc7dd615eedee114e6264d1.tar.xz
Fix meson build libexecdir to the correct path
Fix https://github.com/mate-desktop/mate-polkit/issues/74
-rw-r--r--meson.build1
-rw-r--r--src/meson.build4
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',