passage icon indicating copy to clipboard operation
passage copied to clipboard

`passsage -c` doesn't work properly on Darwin

Open Ma27 opened this issue 1 year ago • 2 comments

First and foremost: I'm not a Darwin person, I'm just forwarding observations since I happen to maintain passage in nixpkgs, so apologies if I missed a few details.

Relevant report and PR: https://github.com/NixOS/nixpkgs/pull/369955, https://github.com/NixOS/nixpkgs/issues/369314

The symptom is that passage -c doesn't copy to clipboard on 1.7.4a2. One reason that was brought up in the original PR that introduced this patch in nixpkgs (https://github.com/NixOS/nixpkgs/pull/24797) is that this doesn't work with use of single-binary coreutils. However, the portion in password-store.sh got removed and both passage and pass seem to work with clipboards on Linux, so I'm not sure if that's accurate after a closer look.

I didn't do a closer examination of which parts are actually broken on Darwin, butI figured the patch (https://github.com/NixOS/nixpkgs/pull/24797/files#diff-a55e5373264b1a674b0dc69370337d94c0b53689083342eb3cb172c06756dab7) might still be interesting for you.

Ma27 avatar Jan 01 '25 14:01 Ma27

As a workaround you can always do passage SMTH | pbcopy

yakimant avatar Feb 05 '25 10:02 yakimant

I wonder if this is a Nix problem rather than a Darwin or macOS problem. I've been using passage for several years on macOS (without Nix), and passage -c works fine.

telemachus avatar Feb 05 '25 14:02 telemachus