I would figure out your environment variables first. It's likely based on what you're saying that your setting those variables only for interactive shell and not someplace where they are sourced by your WM or whatever is launching your WM.
Check out this section of the ArchWiki article. The rest of the article may also have some useful info.
Related: https://www.youtube.com/watch?v=3O5cGUs2OM4