Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: weird unknown gui pops up when using cli #336

Closed
DianaNites opened this issue Aug 12, 2022 · 1 comment
Closed

UX: weird unknown gui pops up when using cli #336

DianaNites opened this issue Aug 12, 2022 · 1 comment
Milestone

Comments

@DianaNites
Copy link

What were you trying to do

Encrypt a file with a passphrase

What happened

instead of prompting for my passphrase in the terminal like I expected from a cli tool, it opened a GUI prompt.

Investigation shows this is related to something called pinentry, which has no way to be disabled except by making PATH empty? Which doesn't work, because.. then rage cant be found. Having to rewrite or construct a new PATH only pointing to rage, on the fly, or only use the absolute path, every time I want to use it, is just completely unacceptable.

pinentry apparently lives in /usr/bin and is a transitive dependency of gnupg, which itself is a transitive dependency of pacman, meaning it will always exist on Arch, and likely many other linux distros, and I as a user have no control over this.

More generally, rage is a command-line tool, and i do not expect such tools to open GUI windows unless explicitly told to, let alone ones from insecure legacy programs like gpg, and especially not when this behavior is documented nowhere, an open issue which has existed since 2021, #280.

This is not the behavior I expected at all

rage -p some_file -o some_file.age
@str4d str4d added this to the rage 0.9.2 milestone Jun 12, 2023
@str4d
Copy link
Owner

str4d commented Jun 12, 2023

rage 0.9.2 listens to a PINENTRY_PROGRAM environment variable, which can be set to the empty string in order to disable pinentry usage and force the CLI fallback.

@str4d str4d closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants