Skip to content
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

Single mode does not set current directory #420

Closed
DoCode opened this issue Mar 12, 2015 · 16 comments
Closed

Single mode does not set current directory #420

DoCode opened this issue Mar 12, 2015 · 16 comments
Assignees
Milestone

Comments

@DoCode
Copy link
Contributor

DoCode commented Mar 12, 2015

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.

@MartiUK
Copy link
Member

MartiUK commented Mar 12, 2015

Just to be sure, are you running an exe you compiled yourself or the one included in the repo?

@DoCode
Copy link
Contributor Author

DoCode commented Mar 12, 2015

I am running an self compiled exe from the current development branch who has the /single cli-switch.

@MartiUK MartiUK added this to the 1.2 milestone Mar 13, 2015
@MartiUK MartiUK self-assigned this Mar 13, 2015
@MartiUK MartiUK closed this as completed Nov 20, 2015
@ghost
Copy link

ghost commented Dec 6, 2016

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

@DoCode
Copy link
Contributor Author

DoCode commented Dec 6, 2016

I don't know why me PR that resolve this issues with /single and Cmder startup directory is gone!?
See it here.

@Stanzilla
Copy link
Member

@Stanzilla
Copy link
Member

no idea what happened, sorry :( Maybe @daxgames @MartiUK know.

Care to redo the PR then?

@Starli0n
Copy link

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.

@DoCode
Copy link
Contributor Author

DoCode commented Mar 14, 2017

@Starli0n please try my PR. This worked for me since Sep 4, 2015!

@DoCode
Copy link
Contributor Author

DoCode commented Mar 14, 2017

@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...

@Starli0n
Copy link

@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

@Starli0n
Copy link

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.

@DoCode
Copy link
Contributor Author

DoCode commented Mar 14, 2017

The PR was successfully merged in 2016... But anyone override my changes.
You can simple use this PowerShell init file.

@Stanzilla
Copy link
Member

@DoCode like I said, please re-do the PR and it will get merged

@inwardmovement
Copy link

I have this issue too... when will it be fixed ?

@daxgames
Copy link
Member

daxgames commented Dec 2, 2018

Fixed in current release

@daxgames daxgames closed this as completed Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants