From judd at jpilot.org Fri Mar 1 04:11:44 2024 From: judd at jpilot.org (Judd Montgomery) Date: Fri, 01 Mar 2024 04:11:44 +0000 Subject: pass-zenity: simple gtk extension In-Reply-To: References: Message-ID: On 2/29/24 18:14, morus wrote: > Hi list. > I hacked together a GUI script and wanted to share. Links at the bottom. Thanks for contributing.? I had not heard of zenity.? It was already on my machine and I may find a use for it. > Git repo on codeberg: > https://codeberg.org/morus/pass-zenity/ This link is broken for me. > and on my website (stagit): > https://menhera.hair/git/pass-zenity/ I tried it and it works okay.? I'm not currently using pass though. Judd From morus at missing.bike Fri Mar 1 15:44:03 2024 From: morus at missing.bike (morus) Date: Fri, 1 Mar 2024 15:44:03 +0000 Subject: pass-zenity: simple gtk extension In-Reply-To: References: Message-ID: > > Git repo on codeberg: > > https://codeberg.org/morus/pass-zenity/ > This link is broken for me. Broken how? Is it something wrong with the repo, or codeberg itself? Thanks for trying it out. -- A24D 338A 80EA 7222 E06F AED9 365E E44F 7671 1D9B From pj at illuminatedcomputing.com Fri Mar 1 18:25:19 2024 From: pj at illuminatedcomputing.com (Paul Jungwirth) Date: Fri, 1 Mar 2024 10:25:19 -0800 Subject: pass-zenity: simple gtk extension In-Reply-To: References: Message-ID: <34689cb3-98a1-4c22-a232-3e7e2ffb78e3@illuminatedcomputing.com> On 2/29/24 15:14, morus wrote: > Hi list. > I hacked together a GUI script and wanted to share. Links at the bottom. This is cool, thanks for building it! I've been wishing for something just like this. I got it installed, and it works fine. I'd love to have a popup that uses fzf for matching. Not sure if that's possible with zenity. When I type "go" to get my google password, it shows my other accounts above my normal one, even though I almost never need those. So I have to keep typing "ogle.com/pj" to get to my own. In the Terminal I can type "gopj" and I'm done. So if you keep working on it, maybe a feature that sorts by frequency of use would be nice. Yours, -- Paul ~{:-) pj at illuminatedcomputing.com From mcepl at cepl.eu Fri Mar 1 18:36:42 2024 From: mcepl at cepl.eu (=?utf-8?q?Mat=C4=9Bj_Cepl?=) Date: Fri, 01 Mar 2024 19:36:42 +0100 Subject: pass-zenity: simple gtk extension In-Reply-To: <34689cb3-98a1-4c22-a232-3e7e2ffb78e3@illuminatedcomputing.com> References: <34689cb3-98a1-4c22-a232-3e7e2ffb78e3@illuminatedcomputing.com> Message-ID: On Fri Mar 1, 2024 at 7:25 PM CET, Paul Jungwirth wrote: > This is cool, thanks for building it! I've been wishing for > something just like this. I got it installed, and it works fine. You mean something like https://gitlab.com/muhq/wofi-pass or https://github.com/carnager/rofi-pass ? Best, Mat?j -- http://matej.ceplovi.cz/blog/, @mcepl at floss.social GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8 It took me fifteen years to discover I had no talent for writing, but I couldn?t give it up, because by that time I was too famous. -- Robert Benchley -------------- next part -------------- A non-text attachment was scrubbed... Name: E09FEF25D96484AC.asc Type: application/pgp-keys Size: 45433 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 216 bytes Desc: not available URL: From asmadeus at codewreck.org Fri Mar 1 20:57:11 2024 From: asmadeus at codewreck.org (Dominique Martinet) Date: Sat, 2 Mar 2024 05:57:11 +0900 Subject: pass-zenity: simple gtk extension In-Reply-To: References: Message-ID: morus wrote on Fri, Mar 01, 2024 at 03:44:03PM +0000: > > > Git repo on codeberg: > > > https://codeberg.org/morus/pass-zenity/ > > This link is broken for me. > > Broken how? Is it something wrong with the repo, or codeberg itself? > Thanks for trying it out. It gave an error 500 yesterday. Seems to work today, so probably a temporary problem with codeberg. For the script itself, on X11 if ydotoold isn't running xdotool probably should be preferred -- it's not because something is installed that it is useable. -- Dominique Martinet | Asmadeus From morus at missing.bike Fri Mar 1 23:16:44 2024 From: morus at missing.bike (morus) Date: Fri, 1 Mar 2024 23:16:44 +0000 Subject: pass-zenity: simple gtk extension In-Reply-To: References: Message-ID: > For the script itself, on X11 if ydotoold isn't running xdotool probably > should be preferred -- it's not because something is installed that it > is useable. That's fair. I think some older version of ydotool would work even without the daemon so I did it like this and never reconsidered. Maybe I should track it down and do a version check too. -- A24D 338A 80EA 7222 E06F AED9 365E E44F 7671 1D9B From morus at missing.bike Fri Mar 1 23:40:39 2024 From: morus at missing.bike (morus) Date: Fri, 1 Mar 2024 23:40:39 +0000 Subject: pass-zenity: simple gtk extension In-Reply-To: <34689cb3-98a1-4c22-a232-3e7e2ffb78e3@illuminatedcomputing.com> References: <34689cb3-98a1-4c22-a232-3e7e2ffb78e3@illuminatedcomputing.com> Message-ID: > I'd love to have a popup that uses fzf for matching. Not sure if that's > possible with zenity. When I type "go" to get my google password, it shows > my other accounts above my normal one, even though I almost never need > those. So I have to keep typing "ogle.com/pj" to get to my own. In the > Terminal I can type "gopj" and I'm done. AFAIK sadly not possible without patching zenity. Best you get is jumping between all current matches, and how well that works depends on zenity version - on 3.44 it's arrows and does great job, on 4.* it's something else and a pain. Try dmenu/rofi scripts instead. > So if you keep working on it, maybe a feature that sorts by frequency > of use would be nice. Doable with a cache, but it probably gets to stay on disk in plaintext and creates new performance considerations for huge stores. I'd go for it with a real lang (not bash), but then we also don't need zenity and it's not pass-zenity anymore. -- A24D 338A 80EA 7222 E06F AED9 365E E44F 7671 1D9B From codeandfire at yahoo.com Sat Mar 2 16:40:25 2024 From: codeandfire at yahoo.com (codeandfire at yahoo.com) Date: Sat, 2 Mar 2024 16:40:25 +0000 (UTC) Subject: A one-liner GPG passphrase prompt? References: <1406302158.2043431.1709397625690.ref@mail.yahoo.com> Message-ID: <1406302158.2043431.1709397625690@mail.yahoo.com> Hi, I am a longtime Pass user, and this mail is about just one small complaint that I have with it. Whenever I want to retrieve a password i.e.: $ pass xyz gives the password of xyz, the dialog that prompts you to enter your GPG passphrase occupies the full terminal screen. Is it possible to get a simple, one-liner prompt instead of this full screen dialog? Whenever I use SSH, the passphrase prompt is a simple one-liner and I was wondering if the GPG passphrase prompt that Pass uses could be similar. This is probably a trivial complaint, but I thought I?d post this question since this is something that keeps putting me off, a bit, while using Pass. I?m new to this mailing list, so apologies in advance if this has been asked before. Thanks! Saniya From judd at jpilot.org Sat Mar 2 16:53:33 2024 From: judd at jpilot.org (Judd Montgomery) Date: Sat, 02 Mar 2024 16:53:33 +0000 Subject: pass-zenity: simple gtk extension In-Reply-To: References: Message-ID: <4f048f3c-01cc-4401-8274-2dc280f3f553@jpilot.org> Yep, a 500.? It works for me now. On March 1, 2024 3:57:11 PM EST, Dominique Martinet wrote: morus wrote on Fri, Mar 01, 2024 at 03:44:03PM +0000: Git repo on codeberg: https://codeberg.org/morus/pass-zenity/ This link is broken for me. Broken how? Is it something wrong with the repo, or codeberg itself? Thanks for trying it out. It gave an error 500 yesterday. Seems to work today, so probably a temporary problem with codeberg. For the script itself, on X11 if ydotoold isn't running xdotool probably should be preferred -- it's not because something is installed that it is useable. -- Dominique Martinet | Asmadeus From ah at fita.dev Sat Mar 2 16:58:25 2024 From: ah at fita.dev (Adrien Horgnies) Date: Sat, 2 Mar 2024 17:58:25 +0100 Subject: A one-liner GPG passphrase prompt? In-Reply-To: <1406302158.2043431.1709397625690@mail.yahoo.com> References: <1406302158.2043431.1709397625690.ref@mail.yahoo.com> <1406302158.2043431.1709397625690@mail.yahoo.com> Message-ID: Hi, This prompt is not implemented by pass. You should check out gpg or pinentry themselves. Best regards, Adrien Horgnies Le sam. 2 mars 2024 ? 17:44, a ?crit : > > Hi, > > I am a longtime Pass user, and this mail is about just one small complaint that I have with it. Whenever I want to retrieve a password i.e.: > > $ pass xyz > > gives the password of xyz, the dialog that prompts you to enter your GPG passphrase occupies the full terminal screen. Is it possible to get a simple, one-liner prompt instead of this full screen dialog? Whenever I use SSH, the passphrase prompt is a simple one-liner and I was wondering if the GPG passphrase prompt that Pass uses could be similar. > > This is probably a trivial complaint, but I thought I?d post this question since this is something that keeps putting me off, a bit, while using Pass. > > I?m new to this mailing list, so apologies in advance if this has been asked before. > > Thanks! > Saniya From t-passwd at girst.at Sat Mar 2 17:29:32 2024 From: t-passwd at girst.at (Tobias Girstmair) Date: Sat, 2 Mar 2024 18:29:32 +0100 Subject: A one-liner GPG passphrase prompt? In-Reply-To: <1406302158.2043431.1709397625690@mail.yahoo.com> References: <1406302158.2043431.1709397625690.ref@mail.yahoo.com> <1406302158.2043431.1709397625690@mail.yahoo.com> Message-ID: adding the following setting to ~/.gnupg/gpg-agent.conf will more or less do what you want (it'll occupy a few lines, showing some details of your key): pinentry-program /usr/bin/pinentry-tty however, this breaks any use cases where you don't have a tty, e.g. passmenu. some time ago, i attempted to write a small shell script querying $DISPLAY to switch between the tty and gtk pinentry programs on the fly, but that did not work (the environment variable was always unset). maybe someone else has a solution to that (i'm fairly sure it should be possible - pinentry-gtk-2 falls back to its own curses based TUI when needed). tobi From adigitoleo at posteo.net Tue Mar 5 13:50:41 2024 From: adigitoleo at posteo.net (adigitoleo (Leon)) Date: Tue, 05 Mar 2024 13:50:41 +0000 Subject: A one-liner GPG passphrase prompt? In-Reply-To: <1406302158.2043431.1709397625690@mail.yahoo.com> References: <1406302158.2043431.1709397625690.ref@mail.yahoo.com> <1406302158.2043431.1709397625690@mail.yahoo.com> Message-ID: It is possible, although not elegant, to achieve what you want. There are two related issues here. First, it is possible for GPG to use what is called 'loopback' mode, in which it will accept the passphrase on the stdin of the parent terminal. You may need this in `~/.gnupg/gpg-agent.conf`: allow-loopback-pinentry And then `gpg --pinentry-mode loopback ...` should work as you expect. To make it the default, add this to `~/.gnupg/gpg.conf`: pinentry-mode loopback Although this may break other usage, presumably if gpg is invoked from within a GUI or some such and the 'controlling terminal' can't accept input anymore. Second, the `password-store.sh` implementation (version 1.7.4) always adds the flag `--batch` to the gpg command. I have found that this is incompatible with loopback pinentry mode. Therefore, I had patched the shell script to remove that flag. Upstream seems to have been modified in this regard, perhaps it will work from HEAD without patching. I had previously questioned the unconditional use of `--batch` [1], but as I got no reply I can't vouch for how safe it is to do this. [1]: https://www.mail-archive.com/password-store at lists.zx2c4.com/msg04511.html From mehdi at mehdix.org Tue Mar 5 16:46:32 2024 From: mehdi at mehdix.org (Mehdi Sadeghi) Date: Tue, 05 Mar 2024 17:46:32 +0100 Subject: A one-liner GPG passphrase prompt? In-Reply-To: References: <1406302158.2043431.1709397625690.ref@mail.yahoo.com> <1406302158.2043431.1709397625690@mail.yahoo.com> Message-ID: <53DD62C7-21C8-4EEF-B4D4-9A82799E628B@mehdix.org> very informative reply, thank you. saved it for later use. Mehdi -------- Original Message -------- From: "adigitoleo (Leon)" Sent: 5 March 2024 14:50:41 CET To: codeandfire at yahoo.com, password-store at lists.zx2c4.com Subject: Re: A one-liner GPG passphrase prompt? It is possible, although not elegant, to achieve what you want. There are two related issues here. First, it is possible for GPG to use what is called 'loopback' mode, in which it will accept the passphrase on the stdin of the parent terminal. You may need this in `~/.gnupg/gpg-agent.conf`: allow-loopback-pinentry And then `gpg --pinentry-mode loopback ...` should work as you expect. To make it the default, add this to `~/.gnupg/gpg.conf`: pinentry-mode loopback Although this may break other usage, presumably if gpg is invoked from within a GUI or some such and the 'controlling terminal' can't accept input anymore. Second, the `password-store.sh` implementation (version 1.7.4) always adds the flag `--batch` to the gpg command. I have found that this is incompatible with loopback pinentry mode. Therefore, I had patched the shell script to remove that flag. Upstream seems to have been modified in this regard, perhaps it will work from HEAD without patching. I had previously questioned the unconditional use of `--batch` [1], but as I got no reply I can't vouch for how safe it is to do this. [1]: https://www.mail-archive.com/password-store at lists.zx2c4.com/msg04511.html