aboutsummaryrefslogtreecommitdiffstats
path: root/community/imv/move-wayland-and-x11-to-libexec.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/imv/move-wayland-and-x11-to-libexec.patch')
-rw-r--r--community/imv/move-wayland-and-x11-to-libexec.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/imv/move-wayland-and-x11-to-libexec.patch b/community/imv/move-wayland-and-x11-to-libexec.patch
new file mode 100644
index 0000000000..064ccba8f3
--- /dev/null
+++ b/community/imv/move-wayland-and-x11-to-libexec.patch
@@ -0,0 +1,29 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Thu, 30 Dec 2021 23:36:48 +0100
+Subject: [PATCH] Move imv-wayland and imv-x11 to /usr/libexec
+
+These bins are normally not executed directly, but by /usr/bin/imv script.
+Avoid polluting PATH.
+
+--- a/files/imv
++++ b/files/imv
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+ if [ -n "${WAYLAND_DISPLAY}" ]; then
+- exec imv-wayland "$@"
++ exec /usr/libexec/imv-wayland "$@"
+ else
+- exec imv-x11 "$@"
++ exec /usr/libexec/imv-x11 "$@"
+ fi
+--- a/meson.build
++++ b/meson.build
+@@ -152,7 +152,7 @@
+ [get_variable('files_' + ws), files_imv],
+ dependencies: [deps_for_imv, get_variable('deps_for_' + ws)],
+ install: true,
+- install_dir: get_option('bindir'),
++ install_dir: get_option('libexecdir'),
+ )
+ endif
+ endforeach