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

Feature Request: Expose Storage to env variable #1082

michelepagot opened this issue Mar 24, 2017 · 3 comments

Feature Request: Expose Storage to env variable #1082

michelepagot opened this issue Mar 24, 2017 · 3 comments


Copy link

michelepagot commented Mar 24, 2017


ConEmu build: 170316 x32/x64
OS version: Windows 7 x32/x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): cmd

Problem description

New feature proposal:
I'm starting conemu with -loadcfgfile to be able to select a custom folder outside that one used for binary and not using the default location in ...\AppData\Roaming\ConEmu.xml
This folder will contain additional scripts and tools called by some of my tasks

ConEmu expose many settings to env variable:
> set Con ConEmuANSI=ON ConEmuAnsiLog= ConEmuArgs=-loadcfgfile C:\conemu_profile\ConEmu.xml ConEmuArgs2= ConEmuBackHWND=0x00070FAA ConEmuBaseDir=C:\conemu\ConEmu ConEmuBuild=170316 ConEmuConfig= ConEmuDir=C:\conemu ConEmuDrawHWND=0x00050F16 ConEmuDrive=C: ConEmuHooks=Enabled ConEmuHWND=0x00050F3E ConEmuPalette=<ConEmu> ConEmuPID=9048 ConEmuPrompt0=$E[m$E[32m$E]9;8;"USERNAME"$E\@$E]9;8;"COMPUTERNAME"$E\$S ConEmuPrompt1=$E[m$E[32m$E]9;8;"USERNAME"$E\@$E]9;8;"COMPUTERNAME"$E\$S$E[92m$P$ E[90m ConEmuPrompt2=$_$E[90m$G ConEmuPrompt3=$E[m$S$E]9;12$E\ ConEmuServerPID=9112 ConEmuTask={Shells::cmd} ConEmuWorkDir=C:\pippo ConEmuWorkDrive=C:
but not the used Storage folder. I'd like to have it too to be able to reference it in my tasks

@michelepagot michelepagot changed the title Expose Storage to env variable Feature Request: Expose Storage to env variable Apr 7, 2017
Copy link

michelepagot commented Apr 7, 2017

is it something missing or wrong in issue description?
I'd like to have path of gpConEmu->opt.LoadCfgFile

1307: else if (szArg.OneOfSwitches(L"-LoadCfgFile", L"-LoadXmlFile"))
1308 {
1309 // -- используем последний из параметров, если их несколько
1310: if (!GetCfgParm(cmdLineRest, gpConEmu->opt.LoadCfgFile, MAX_PATH, true))
1311 {

in a dedicated env variable defined in
76: void SetConEmuWorkEnvVar(HMODULE hConEmuCD)
77 {
78 wchar_t szPath[MAX_PATH*2] = L"";

Copy link

Maximus5 commented Apr 7, 2017

Path (with xml file name) or the directory where xml is located?
Proposed environment variable name?

Copy link

michelepagot commented Apr 7, 2017

Just path without name please. Variable name could be something like ConEmuLoadCfgPath

Maximus5 added a commit that referenced this issue Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants