Questions tagged [environment-variables]
Environment variables are system-wide variables which share the same value. These variables are often parsed by the shell when executing commands, and are expanded into their appropriate variable. For example, this allows users to move file locations without needing to update hard-coded paths in scripts (they just have to update the environment variable).
1,299
questions
0
votes
1
answer
54
views
%localappdata% and echo %localappdata% returns two different directories [closed]
I'm having some issues with Windows 10. After fixing my temp INET folder which somehow was pointing at a different account, I've now found an odd issue.
If I type echo %localappdata% in CMD, it gives ...
0
votes
0
answers
54
views
Possible to expand/use a variable value, in another variable, in a systemd service file?
All I want to do, is to re-use the name I enter in the User= specification in a systemd .service file; e.g. I would have liked to do this in a .service file:
# ...
User=my-username
Environment="...
1
vote
0
answers
70
views
Does Windows 11 have a 32,767 character limit for environment variables?
(See also: Why does Windows have a limit on environment variables at all?)
According to the Windows app development documentation, “The maximum size of a user-defined environment variable is 32,767 ...
0
votes
0
answers
30
views
Does ~/.gnupg/gpg.conf accept shell environment variables?
I need to add my GPG key to some lines in
~/.gnupg/gpg.conf
such as
default-key XXX
default-recipient XXX
Does it accept shell environment variables? Can I use
default-key $GPGKEY
default-recipient $...
-2
votes
1
answer
38
views
In there some description of all the command processor macros in Windows?
I'm looking for a list of the macro strings known to Window 10 command processor, e.g. %ProgramFiles%, %ProgramFiles(x86)%, etc.
0
votes
0
answers
59
views
Environment variables such as PATH not visible in processes started as service
I have randomly bumped into this as I can clearly see that PATH variable is not populated in the process that I'm now starting as a service on Windows 11, while the same exact script when started from ...
0
votes
2
answers
1k
views
How to safely store environmental variables and make it actually invisible in my PC?
I am learning about environmental variables. I know for example that if I have a secret password I should not code it inside of my code.
From what I understood is that a .env file should be used to ...
3
votes
1
answer
217
views
LANGUAGE environment variable ignores `en` (English)
On my Linux systems, I prefer the user interface to be in English. However, as a native speaker of German, I need spell checking to understand both English and German.
Yesterday I've learned that you ...
0
votes
0
answers
217
views
Using Jdk1.8 and installing openjdk 11
I had a working java 8 application in my windows asset until I installed jdk11 using Ubuntu package.
Now when I give java -version cmd in Ubuntu I get the openjdk 11 version:
$ java -version
openjdk ...
1
vote
2
answers
534
views
How to backup the environment variable configuration for windows 10?
The situation is as follows:
Windows 10 22H2 (referred to as System A for short) cannot start (installed on hard drive A), nor can it enter safe mode or other startup modes, as starting will result in ...
0
votes
2
answers
108
views
How many environment variables does Windows 11 allow?
I have quite many environment variables scattered both in User Variables and System variables, and I cannot add more variables, which leads me to a question: is there an upper limit on the number of ...
0
votes
0
answers
27
views
Mac's sudo not sanitize PATH from user's setting?
Mac's sudo behaviour is unlike everywhere else, of which just like observed in Passing PATH through sudo, sudo would flush PATH every time.
However, I found in Mac, my PATH setting is carried into ...
0
votes
0
answers
16
views
Character limit Trying to modify the system PATH variable after already entered the long path in register give error msg [duplicate]
Getting this error in windows 10 64 bit
I did enable to enter long size path from the registry
My question is how to disable this character limitation ?
I most say that this limitation is happening ...
1
vote
0
answers
299
views
How do I set env variables for Docker on Windows desktop?
I'm trying to set up Sabnzbd and this is what I'm attempting to set:
I am getting this message:
s6-linux-init: warning: unable to dump kernel environment to /run/s6/container_environment: Is a ...
4
votes
2
answers
428
views
How do I persist windows variables set in a CMD file?
in windows I would like to have a cmd script that I can run which sets an environment variable. The variable should still be set after the script executes. The variable is a token of sorts and is ...