I've found multiple ways to update environment variables to an Ubuntu system with a desktop environment, some common answers are:
/etc/environment/etc/profileand/etc/profile.d/*.sh$HOME/.profile$HOME/.pam_environment
And well many also say $HOME/.bashrc which only applies to bash and so is really not correct.
It does not seem to be possible to update the environment via any of these means in a running system. If I open a new terminal tab, a new terminal window, close the terminal and reopen the entire application, or launch a completely different application, at no point does any of them seem to re-evaluate any of these files
Since I need to update the environment on a regular basis for development tools etc., and have multiple long running tasks (stuff that takes days or weeks to complete) that I don't want to terminate, this is not particularly convenient.
How do I get a running desktop environment to reload and apply updates to environment variables, so that I don't have to close everything I'm doing to get newly launched software (e.g. IDEs, Git GUI clients, etc.) to see the updated environment?
If it matters, I'm using XFCE4 for the desktop environment.