Re: Commit “emacs: Avoid double decryption in field and secret access” broke my setup
Code Sensei (info)
info at rjekker.nl
Mon Aug 18 11:48:05 UTC 2025
Hi,
I do not have permissions to commit or revert commits, so unfortunately I can’t help you there. Just wondering - would it not be simpler to just call pass directly e.g. “pass -c my secret” instead of doing this through emacs? Seems like that would solve your problem, probably be faster too.
RJ
> On 18 Aug 2025, at 13:00, Mekeor Melire <mekeor at posteo.de> wrote:
>
> Hello. I'm reposting because my original message was badly
> formatted and got no response. If no one responds, let's please
> revert the mentioned commit.
>
>
>
> Hello. Git commit 3ca13cd8882cae4083c1c478858adbf2e82dd037 from
> 2025-06-18 broke my setup. To be precise, this part seems to break
> it:
>
>
> Now, how does it break my setup? What is my setup? I use GNU/Linux
> with Wayland and wlroots based Wayland compositor. I also run an
> Emacs daemon. To temporarily put a password in my clipboard, I run
> something along these lines:
>
> emacsclient --create --no-wait \
> --eval "(call-interactively #'password-store-copy)" \
> --eval "(delete-frame)"
>
> I should also mention that I have an Elisp advice overriding
> password-store--run-1 without which my setup doesn't work. It
> makes sure that `1' is passed as SECONDS argument to
> accept-process-output.
>
> This used to work like a charm but with the mentioned commit
> active, the password doesn't end up in my clipboard.
>
> I didn't yet properly investigate the reasons. If I would wildly
> guess, I'd wonder if it's due to the removal of the invocation of
> password-store--run-show in the above mentioned commit
> snippet. Because --run-show will call password-store--run-1 which
> will call make-process. I'd guess that this means that before the
> patch, effectively my Emacs-daemon process was copying the
> password; whereas after the commit, effectively the
> emacsclient-process is copying. And since the emacsclient-process
> dies when its frame is closed, the Wayland clipboard is cleared.
>
> For now, my workaround is to call password-store-copy in an
> existing Emacs frame (i.e. one that I won't close until I at least
> have pasted the copied password).
>
> I'd be glad if my problem was solved upstream in
> password-store.el. Nevertheless, thank you for the commit and all
> the development labour.
More information about the Password-Store
mailing list