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

Unable to Decrypt GPG File in VSCode on Ubuntu 24.04 Without First Using Terminal #1665

Open
jcr010910 opened this issue Jul 18, 2024 · 0 comments
Labels
auth-issue An issue authenticating to a host

Comments

@jcr010910
Copy link

Version

2.5.1+90d5f897f164a8fe07d2aa3bf7db439b0b4e03ea

Operating system

Linux

OS version or distribution

Ubuntu 24

Git hosting provider(s)

Azure DevOps

Other hosting provider

No response

(Azure DevOps only) What format is your remote URL?

https://dev.azure.com/{org}

Can you access the remote repository directly in the browser?

Yes, I can access the repository

Expected behavior

1.	Using pass ls and pass show commands in the terminal works perfectly.
2.	Running git pull in the terminal prompts me to enter the passphrase via a pop-up, and it works correctly.
3.	When I use VSCode after trying these commands in the terminal, it works (likely due to caching and gpg-agent).
4. I have added export GPG_TTY=$(tty) to my ~/.bashrc.

Question:
What am I missing to make GPG decryption run directly in VSCode without having to use the terminal first?

Actual behavior

If I try to use VSCode directly without first using the terminal, it fails to decrypt the GPG file stored in the password store.

Logs

No response

@jcr010910 jcr010910 added the auth-issue An issue authenticating to a host label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-issue An issue authenticating to a host
Projects
None yet
Development

No branches or pull requests

1 participant