summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-06-22 20:33:19 +0100
committerDavid Faure <faure@kde.org>2023-10-08 09:40:43 +0200
commit8d0694ac1b1c6bc2200adfa31213571f59006be5 (patch)
treefef97b7908146e815f6797342b25535cc3085a55
parent22fda65d72d81ef7c3e2a52c148f099491341ca4 (diff)
Make it possible to use xdgmime in PATH, if not present locallywork/dfaure/xdgmime-in-path
-rw-r--r--meson.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 9a3e856..16fa810 100644
--- a/meson.build
+++ b/meson.build
@@ -26,11 +26,11 @@ xmlto = find_program('xmlto', required: false)
###############################################################################
# Find xdgmime
-xdgmime = get_option('xdgmime-path') / 'src'
+xdgmime = get_option('xdgmime-path')
-xdgmime_print_mime_data = find_program(xdgmime/'print-mime-data', required: false)
-xdgmime_test_mime_data = find_program(xdgmime/'test-mime-data', required: false)
-xdgmime_test_mime = find_program(xdgmime/'test-mime', required: false)
+xdgmime_print_mime_data = find_program(xdgmime/'print-mime-data', 'print-mime-data', required: false)
+xdgmime_test_mime_data = find_program(xdgmime/'test-mime-data', 'test-mime-data', required: false)
+xdgmime_test_mime = find_program(xdgmime/'test-mime', 'test-mime', required: false)
xdgmime_found = (
xdgmime_print_mime_data.found() and
xdgmime_test_mime_data.found() and