Package: pass
Version: 1.7.4-7
Severity: wishlist

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

-- System Information:
Debian Release: 13.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.48+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pass depends on:
ii  gnupg  2.4.7-21
ii  tree   2.2.1-1

Versions of packages pass recommends:
ii  git           1:2.47.3-0+deb13u1
ii  qrencode      4.1.1-2
ii  wl-clipboard  2.2.1-2
pn  xclip         <none>

Versions of packages pass suggests:
pn  libxml-simple-perl  <none>
ii  perl                5.40.1-6
pn  python              <none>
ii  python3             3.13.5-1
ii  ruby                1:3.3+b1

-- no debconf information

-- 
Alex
# No gods, no masters.
# 47A5 9C45 FA69 E651 25ED 0B98 9891 FC5D 3C3C 4426

Attachment: signature.asc
Description: PGP signature

Reply via email to