-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request(environment variables): Update environment variables after Far Manager restart #31
Comments
It's quite hard to understand you, but I'll try. |
OK, to simplify the problem, no ConEmu, no ConsoleZ, only Far.exe without any wrappers. See 2—4 sections of issue. If I use native Windows console: environment variables refresh after cmd.exe restart. elif I use Far Manager: environment variables doesn't refresh after Far.exe restart. Thanks. |
If you mean @BladeMight answer, it works for ConEmu in cmd.exe mode, but doesn't work for ConEmu in Far Manager mode. Thanks. |
I still don't understand you. Try this:
|
If I run Far.exe via Win+R → environment variables successful update for me. Else I run Far.exe via another method: for example, in Windows Explorer I move to folder environment variables doesn't update for me. Is existing method, that update environment variables in second case? Thanks. |
I'll try to guess. So, to summarise, to get an updated environment you can:
|
Thanks! All 3 methods works for me. But environment variables doesn't update, if I run Far Manager via Wox launcher or Sublime Text — 2 my preferred methods… |
Same as above: environment variables are inherited from the parent process, so if a program does not update its environment automatically - the only way is to restart it from some other program that does. |
1. Summary
It would be nice, if Far Manager would update environment variables after restart as in native Windows console (cmd.exe).
At the time I need restart Windows, that get updated environment variables for new sessions.
Related question.
2. Steps to reproduce
I set any variable:
I restart terminal → I print
echo %SASHAVAR%
.3. Expected behavior
If terminal == native Windows console or Far Mode in ConsoleZ:
4. Actual behavior
Elif terminal == Far Manager or Far Mode of ConEmu:
I prefer ConEmu, not ConsoleZ, but ConEmu, unfortunately, doesn't support automatic refresh environment variables in new session at the time.
5. Not helped
see
Not helped
section for related question,F9 →
Options
→Automatic Update of environment variables
:Environment variables update for me without refresh in current session, but if I restart Far Manager, I get actual behavior, not expected.
I can't find this feature in existing plugins as EnvMan.
6. Note
It would be nice, if would be possible update environment variables, if user run terminal in Far mode use different actions. For example, I run ConEmu in Far mode via:
Thanks.
The text was updated successfully, but these errors were encountered: