-
Hi, I was not sure where to raise this but I have run into a weird issue when trying to use chezmoi with 1password on Linux (I am unsure if this is specific to using the Biometric Auth setting, which triggers polkit). I think I have solved the issue and I want to add a warning into the documentation so that others will not get caught by the unhelpful error messages from the CLI. First some system info:
I started with a very simple template to drop a public key into
The rest of the error is incidental and changes depending on whether the I initially thought it might be a polkit problem so I went to turn off biometric unlock in the app so I could try signing in manually (to isolate things). Ran the same test command and got the following error:
It was indeed communicating with the desktop app it seems (and the desktop app controls the polkit prompts?), maybe the desktop app was denying the connection for some reason. I restarted the desktop app in a terminal to see the output. The first warning and error:
I tried copying the binary to a local bin location and changing the permissions:
It really is not liking that Once set to owner
So now the directory is not permitted, so I tried moving the binary to
Success! Now I have two questions:
I think installing chezmoi using a system package needs to be recommended for using 1password (at least with biometric login). I have now installed the Arch Linux package on this machine and it is working properly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for reporting this - this is a new issue. The best place for documenting this is the 1Password section of the user guide and the reference manual, namely https://github.com/twpayne/chezmoi/blob/v2.22.1/assets/chezmoi.io/docs/user-guide/password-managers/1password.md and https://github.com/twpayne/chezmoi/blob/v2.22.1/assets/chezmoi.io/docs/reference/templates/1password-functions/index.md. Note that the |
Beta Was this translation helpful? Give feedback.
Thanks for reporting this - this is a new issue.
The best place for documenting this is the 1Password section of the user guide and the reference manual, namely https://github.com/twpayne/chezmoi/blob/v2.22.1/assets/chezmoi.io/docs/user-guide/password-managers/1password.md and https://github.com/twpayne/chezmoi/blob/v2.22.1/assets/chezmoi.io/docs/reference/templates/1password-functions/index.md.
Note that the
onepassword.prompt
option might get removed, see #1974 for the gory details.