#1 Wrong output in wyaland when the password is copied to clipboard and the multiline option is not used

Chiuso
aperto 1 anno fa da giorgio.lando · 2 commenti

When I run neopassmenu in wayland (sway) with the -c option and without the -m option, the output is not the password but "pass <nameoftheentryinthepasswordstore>". It does not matter what value DMENU_COMMAND has (I've tried with dmenu-wl, tofi, wofi --show dmenu and bemenu).

Steps to reproduce what happens:

1) I run neopassmenu -c;

2) the password chooser appears, I select an entry (let's say the "google" entry).

I now look at my clipboard and the last entry is not the google password, but literally "pass google".

The problem does not arise if I add the "-m" option and I select a line.

Please find beneath some details about my system.

Distribution: Archlinux

Neopassmenu version: 1.0.2-1 (installed from the AUR)

Window manager: Sway 1.8.1

Wayland version: 1.21.0 (standard Archlinux package)

wl-clipboard version: 2.1.0 (standard Archlinux package)

When I run neopassmenu in wayland (sway) with the -c option and without the -m option, the output is not the password but "pass \<nameoftheentryinthepasswordstore\>". It does not matter what value DMENU_COMMAND has (I've tried with dmenu-wl, tofi, wofi --show dmenu and bemenu). Steps to reproduce what happens: 1) I run neopassmenu -c; 2) the password chooser appears, I select an entry (let's say the "google" entry). I now look at my clipboard and the last entry is not the google password, but literally "pass google". The problem does not arise if I add the "-m" option and I select a line. Please find beneath some details about my system. Distribution: Archlinux Neopassmenu version: 1.0.2-1 (installed from the AUR) Window manager: Sway 1.8.1 Wayland version: 1.21.0 (standard Archlinux package) wl-clipboard version: 2.1.0 (standard Archlinux package)
Giorgio Lando commented 1 anno fa
Autore

I guess I've found a solution. Line 83 in the script should be:

echo "$(pass $file)" | wl-copy --trim-newline

and not:

echo "pass $file" | wl-copy --trim-newline

I guess I've found a solution. Line 83 in the script should be: echo "$(pass $file)" | wl-copy --trim-newline and not: echo "pass $file" | wl-copy --trim-newline
BezierQuadratic commented 1 anno fa
Proprietario

Thanks for the issue. I have decided to to move from xclip and wl-copy to clipboard to simplify the codebase. I'm committing soon.

Thanks for the issue. I have decided to to move from xclip and wl-copy to [clipboard](https://getclipboard.app) to simplify the codebase. I'm committing soon.
BezierQuadratic referenced this issue from a commit 1 anno fa
Sign in to join this conversation.
Nessuna etichetta
Nessuna milestone
Nessun assegnatario
2 Partecipanti
Caricamento...
Annulla
Salva
Non ci sono ancora contenuti.