Repository navigation
allow the user to configure where Zed writes temp files or change how zed calls the gnupg pinentry program #67448
cardboardboxpepe
started this conversation in
Feature Requests
Replies: 1 comment
|
Overall, I like the editor, it's as advertised -- blazingly fast (TM). The only thing that's stopping me from using it is Other than that, great work! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Body
What are you proposing?
I'd like the ability to either:
a) change where Zed writes temporary files (to control where the gnupg pinentry script gets written), or
b) the ability to specify or change the gnupg pinentry program
Why does this matter?
As it is currently, when Zed detects that commit signing is enabled in a repository, it will write (from what I can tell) a pinentry script to the
/tmpfolder and call it to prompt the user to enter in their GPG key's password (if one is set, which mine is) to sign the commit.I have my tmpfs mounted to
/tmpasnosuid,nodev,noexecsince I don't like to have scripts (or anything for that matter) being executed from/tmpfor security reasons.This is what currently happens when I launch
zeditand try and commit something:This is after I click the
View Logon thegit commit failedbox that pops up.Are there any examples or context?
Uhh, not really. I made a hack with firejail:
doas firejail \ --noprofile \ --bind="$XDG_CACHE_HOME",/tmp \ --nonewprivs \ setpriv \ --reuid=1000 \ --regid=1000 \ --init-groups \ zeditPossible approach
I was thinking an environment variable (which was originally hallucinated by Gemini). Something like:
Where, by default, when
ZED_TMPFS(orTMPFS) is unset, it will default to/tmp.This way, you don't actually have to change the underlying implementation as to how to call pinentry.
All reactions