Passing environment variables to GUI apps on i3wm

I started using i3 as my window manager, and at some point started having some issues with env variables on GUI apps. This is because we usually add env variables to the shell config file, in my case the .zshrc file, however, .zshrc will set the env variables only in your shell and not all the apps. So, when setting up a project using git with ssh and a passphrase as authentication (and after doing all the setup for the gnome keyring) I realized that my VSCode wasn’t actually using the keyring and was asking for the ssh passphrase always, however, this wasn’t happening on my shell....

April 12, 2024 · 1 min · Elvin Guti