#1119074 pass: please install passmenu as executable

#1119074#5
Date:
2025-10-26 16:13:17 UTC
From:
To:
Dear Maintainer,

the Debian pass package provides the contrib/dmenu/passmenu script from
upstream in /usr/share/doc/pass/examples/dmenu/passmenu as an executable
script.

To make use of the passmenu script on my Debian machine with Wayland, I
had to copy the script to a directory on my PATH and apply the following
diff

@@ -9,7 +9,7 @@
 fi

 if [[ -n $WAYLAND_DISPLAY ]]; then
-	dmenu=dmenu-wl
+	dmenu=wmenu
 	xdotool="ydotool type --file -"
 elif [[ -n $DISPLAY ]]; then
 	dmenu=dmenu

as dmenu-wl is not packaged for Debian, wmenu however is.

I'm not particularly fond of this solution as I would miss all upstream
changes to the script and was wondering whether it would be possible to
put the (slightly adapted?) script in /usr/bin rather than
/usr/share/doc/pass/examples as it is very helpful for users of tiling
window managers?

If you decide to not put passmenu into /usr/bin, is there another way of
using the passmenu functionality without copying the script? I've tried
defining

dmenu-wl () { wmenu; }
export -f dmenu-wl

in my ~/.bashrc but this only works when I call passmenu from the CLI
but not when it is called through wmenu-run, where it fails with:

line 27: dmenu-wl: command not found

Thanks for your work and help!

PS: Copying in this mailing list thread for reference
https://lists.debian.org/debian-user/2025/10/msg00516.html

#1119074#10
Date:
2025-10-26 17:41:59 UTC
From:
To:
Hi

For the time being I've worked around the issues with 2 symlinks:

$ ls -l /usr/local/bin/ | grep menu
lrwxrwxrwx 1 root root       14 Oct 26 18:36 dmenu-wl -> /usr/bin/wmenu
lrwxrwxrwx 1 root root       43 Oct 26 18:39 passmenu -> /usr/share/doc/pass/examples/dmenu/passmenu

Maybe this will help others, too.