Skip to content

Add GPG_TTY export for WSL systems#88

Merged
pascal-zarrad merged 1 commit intomainfrom
feature/wsl-gnupg-tty
May 3, 2025
Merged

Add GPG_TTY export for WSL systems#88
pascal-zarrad merged 1 commit intomainfrom
feature/wsl-gnupg-tty

Conversation

@pascal-zarrad
Copy link
Copy Markdown
Owner

Description

Add GPG_TTY export for WSL systems.
This change is exlusive for WSL to ensure pinentry in terminal is used.

Without it, depending on current WSL config, there are three possible options that may happen:

  1. Pin entry does not work at all
  2. Pin entry opens as a X11 window in Windows
  3. Pin entry works as normal and shows in terminal

With this change, option 3 will always happen, which ensures a consistant experience.

This is implemented as a plugin instead of a template, so we only write the export to .zshrc when installation happens on WSL.

@pascal-zarrad pascal-zarrad added the C1 - enhancement New feature or request label May 3, 2025
@pascal-zarrad pascal-zarrad self-assigned this May 3, 2025
@pascal-zarrad pascal-zarrad marked this pull request as ready for review May 3, 2025 18:06
@pascal-zarrad pascal-zarrad force-pushed the feature/wsl-gnupg-tty branch from 3bc91e9 to 8fa09b4 Compare May 3, 2025 18:08
@pascal-zarrad pascal-zarrad merged commit 7cfc073 into main May 3, 2025
2 checks passed
@pascal-zarrad pascal-zarrad deleted the feature/wsl-gnupg-tty branch May 3, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C1 - enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant