Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

conemu and console2 emulators not getting new path variable

I thought maybe it was a system issue but recently did a fresh install (win7 64bit) and a clean install of conemu (had same problem with both conemu and console2 on old win32 system). Also everything I find researching has to do with adding variables via the command line. I'm doing this through Start->Control Panel->System->Advanced System Settings and then restarting the console. cmd picks up the path correctly.

When I manually add a new path to the system or user PATH variable and then restart the console and echo %path% it has not re-loaded the new PATH variable.

cmd.exe:

C:\Users\lotus>echo %path%
C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\
System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\PHP;C:\ProgramData\
Composer\bin;C:\PHP;C:\PHP\ext;C:\Ruby200-x64\bin;C:\Users\lotus\AppData\Roaming
\npm

conemu:

C:\Program Files\ConEmu>echo %path%
C:\Program Files\ConEmu\ConEmu;C:\Program Files\ConEmu;C:\Python33\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Ruby200-x64\bin

I know there is a extra C:\PHP but that's another issue. I still have the same problem if I remove that.

Thanks

like image 483
isimmons Avatar asked Jun 10 '13 18:06

isimmons


2 Answers

When you are using alternative tab based terminals like ConEmu or Console2, you need to restart the terminal, not a single console (read tab)!

This is because child processes inherit their environment their direct parent process, not from the system!

Sometimes explorer (or whatever shell you are using to start ConEmu) needs to be restarted, as in you have to kill explorer.exe, so your start menu disappears and relaunch it from task manager. If all else fails, log off and on again.

like image 168
Maximus Avatar answered Oct 15 '22 11:10

Maximus


Even if ConEmu is closed, there is a ConEmu64.exe process. Need to kill it.

like image 39
Der_Meister Avatar answered Oct 15 '22 11:10

Der_Meister