termux-packages/x11-packages/dmenu/fix-hardcoded-paths.patch
2022-04-18 14:35:49 +05:30

18 lines
656 B
Diff

diff -uNr dmenu-4.9/dmenu_path dmenu-4.9.mod/dmenu_path
--- dmenu-4.9/dmenu_path 2019-02-02 14:55:02.000000000 +0200
+++ dmenu-4.9.mod/dmenu_path 2019-05-26 22:35:29.830530754 +0300
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!@TERMUX_PREFIX@/bin/sh
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/dmenu_run"
diff -uNr dmenu-4.9/dmenu_run dmenu-4.9.mod/dmenu_run
--- dmenu-4.9/dmenu_run 2019-02-02 14:55:02.000000000 +0200
+++ dmenu-4.9.mod/dmenu_run 2019-05-26 22:35:06.966366935 +0300
@@ -1,2 +1,2 @@
-#!/bin/sh
-dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
+#!@TERMUX_PREFIX@/bin/sh
+dmenu_path | dmenu "$@" | ${SHELL:-"@TERMUX_PREFIX@/bin/sh"} &