[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

passmenu on Debian with Wayland



Hi all

I am using the [Unix password manager pass][0] out of the [Debian
password-store package][2].

[0]: https://www.passwordstore.org/
[1]: https://salsa.debian.org/debian/password-store

passmenu, a very useful script for users of tiling window managers, is
nowadays [bundled with pass upstream][3] and is also [available in the
Debian package][4].

[3]: https://git.zx2c4.com/password-store/tree/contrib/dmenu
[4]: https://salsa.debian.org/debian/password-store/-/tree/master/contrib/dmenu?ref_type=heads

However, on my machine, the passmenu script is installed to

$ dpkg -S passmenu
pass: /usr/share/doc/pass/examples/dmenu/passmenu

Before raising a bug against the pass package I wanted to understand
whether this is correct? Why would an executable script end up in
/usr/share/doc?

Assuming it is correct, how would I use the script as it is packaged in
Debian?

1. On Wayland, the upstream passmenu uses dmenu-wl internally which is
not packaged in Debian. wmenu is a good alternative and available on
Debian stable.

2. I've tried symlinking /usr/share/doc/.../passmenu in ~/.local/bin and
have defined a dmenu-wl function in my ~/.bashrc:

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

Now I can run passmenu from the CLI, but it doesn't start from wmenu-run
and instead fails with

/home/alex/.local/bin/passmenu: line 27: dmenu-wl: command not found

Where would I have to put the function definition for the invocation
from wmenu-run to also work?

3. Replacing dmenu=dmenu-wl with dmenu=wmenu in the script works for
both CLI and wmenu-run invocation of passmenu, but I would prefer not
making manual changes to package provided files.

Any ideas on how I can use passmenu without creating a copy of the
script and applying my manual correction from dmenu-wl to wmenu?

Thanks in advance for your help.

PS: Please keep me CC'ed as I am not subscribed to debian-user@l.d.o

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

Attachment: signature.asc
Description: PGP signature


Reply to: