Linked Questions
10 questions linked to/from Changing environment variable of a running process
182 votes
15 answers
361k views
Is there any way to set environment variables in Visual Studio Code?
How can I set up environment variables in Visual Studio Code?
127 votes
13 answers
57k views
Is there a way to change the environment variables of another process in Unix?
On Unix, is there any way that one process can change another's environment variables (assuming they're all being run by the same user)? A general solution would be best, but if not, what about the ...
98 votes
13 answers
351k views
How can I globally set the PATH environment variable in VS Code?
I'm defining a custom $PATH environment variable in my ~/.bash_profile (on a Mac), like so: PATH="$HOME/.cargo/bin:$PATH:$HOME/bin" However, VS Code of course does not run my .bash_profile, ...
0 votes
1 answer
19k views
How to modify a LD_LIBRARY_PATH environment variable?
I have Ubuntu 16.04, and installing gtk+3.22.20, a version of GLIB >= 2.49.4 is needed. When running the 'configure' script, it says it detects that GLIB is 2.48.2. However, 'pkg-config --modversion ...
2 votes
1 answer
7k views
Is there a way to refresh environment variables for a running process?
I've seen various posts on refreshing powershell and cmd terminals, but I'm not sure if there is also a means to update the environment variables of an already running process (outside of restarting ...
3 votes
2 answers
3k views
Load dependent .so from other shared library via JNI
I want to call some function of liba.so from other libb.so. libb.so is dynamic so library that implement native method which i have loaded using System.loadLibrary("b") inside JNI. first i have set ...
2 votes
1 answer
2k views
Updating environment variables in Bash
I have one long-running script which does some work with AWS. I have another script which puts environment variables for AWS authentication but that is only valid for 15 mins. Now I can't change the ...
0 votes
1 answer
766 views
How to stop GStreamer DEBUG logs
I am enabling GST_DEBUG = 7 and then starting a media application, so I keep on getting the logs which I have set as "GST_DEBUG_FILE":"/var/log/gst-log". Q. If I close the media application I stop ...
0 votes
1 answer
112 views
How to call func everytime when we use var
How I can rewrite the below code so that whenever I use the var CsvVersion every time it calls the func and gives me the latest value? package main import ( "fmt" "os" ) ...
0 votes
0 answers
82 views
How to read changes to environment variables dynamically in a React app without app restart?
Is there a way to read changes to environment variables dynamically in a React app? I want to read a few environment variables that determine what is shown in the app, but don't want to restart it if ...