When open cmder(cmder launcher exe from development branch) in single mode from explorer context menu,
the CMDER_START environment variable is not overwritten when the second tab is started.
Just to be sure, are you running an exe you compiled yourself or the one included in the repo?
I am running an self compiled exe from the current development branch who has the /single cli-switch.
1.3.2 release notes claim this issue was fixed but that does not appear to be the case. running cmder /single C:\path still does not set the path correctly in the new tab
I don't know why me PR that resolve this issues with /single and Cmder startup directory is gone!?
See it here.
@DoCode that is weird? It shows in the history? https://github.com/cmderdev/cmder/commits/master/launcher/src/CmderLauncher.cpp
no idea what happened, sorry :( Maybe @daxgames @MartiUK know.
Care to redo the PR then?
I am facing the same issue here but only when I had launched an instance of Cmder before.
If I execute Cmder.exe /SINGLE D:\ when there is no Cmder launched, it works and it will work it I run again this command.
However, if I had launched Cmder manually before the same command would not work and the default path would be my user path.
I tweaked the options of Running As Admin and tried all kind of combinations but I did not figure out how to solve the issue.
I do not know whether those issues are linked.
@Starli0n please try my PR. This worked for me since Sep 4, 2015!
@Stanzilla, how can we close this issue for all times? I use my PR since Sep 4, 2015 and it works like a Charme with all updates from ConEmu...
@DoCode Thanks you, that's nice but I do not intend to compile my own version of Cmder (at least for now)
So please integrate his PR
For now, I use this walkaround:
Terminal.cmd _path_
@echo off
set ConEmuExe=ConEmu64.exe
rem Check if Cmder is already launched
tasklist /FI "IMAGENAME eq %ConEmuExe%" 2>NUL | C:\Windows\System32\find.exe /I /N "%ConEmuExe%">NUL
if "%ERRORLEVEL%"=="0" goto NEW_TAB
:OPEN_CMDER
%CMDER_ROOT%\Cmder.exe /SINGLE %~1
goto :EOF
:NEW_TAB
start %CMDER_ROOT%\vendor\conemu-maximus5\%ConEmuExe% /title Cmder /cmd cmd /k "%CMDER_ROOT%\vendor\init.bat && cd /d %~1"
But I do not have the right icon when I open a new tab.
It is really annoying.
The PR was successfully merged in 2016... But anyone override my changes.
You can simple use this PowerShell init file.
@DoCode like I said, please re-do the PR and it will get merged
I have this issue too... when will it be fixed ?
Fixed in current release
Most helpful comment
I have this issue too... when will it be fixed ?