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

As admin CMDER_ROOT not set in Powershell #643

Closed
erichiller opened this issue Sep 20, 2015 · 1 comment
Closed

As admin CMDER_ROOT not set in Powershell #643

erichiller opened this issue Sep 20, 2015 · 1 comment

Comments

@erichiller
Copy link

Title says it all, the only place I see a mention of this is in cmder/launcher/src/CmderLauncher.cpp on line 114 & 115

SetEnvironmentVariable(L"CMDER_ROOT", exeDir);
SetEnvironmentVariable(L"CMDER_START", path.c_str());

I have a workaround currently of putting

# if CMDER_ROOT not set (for some reason in admin mode this doesn't happen)
if( -not $env:CMDER_ROOT ){
    $env:CMDER_ROOT = Split-Path -Path $PSScriptRoot -Parent 
}

into vendor/profile.ps1

@daxgames
Copy link
Member

This is fixed in the development branch for all three shell types cmder, powershell and bash and can be closed. See #702

@MartiUK MartiUK closed this as completed Nov 24, 2015
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

4 participants