Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

New shells working directory is set to conemu installation directory #1432

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 1432

Required information!
OS version: Win7   SP1   x64
ConEmu version: 131225 x64

When starting new shell, it opens in conemu installation directory, i.e. C:\Program
Files\ConEmu. It should be something more sensible like user home directory.

Also, while this can be solved for default shell by changing working directory of shortcut,
it does not solve the problem for Jump List items / tasks.

Reported by mwisnicki on 2014-01-15 15:22:09

Maximus5 commented 9 years ago
For tasks you can set the per task "Task parameters", for example "/dir %USERPROFILE%".

Reported by mb97531 on 2014-01-15 17:56:08

Maximus5 commented 9 years ago
Thanks. Better defaults wouldn't hurt though.

Reported by mwisnicki on 2014-01-15 19:15:01

Maximus5 commented 9 years ago
How exactly you are starting ConEmu and shells?

Reported by ConEmu.Maximus5 on 2014-01-16 16:08:46

Maximus5 commented 9 years ago
Either by middle-clicking on pinned icon (this works since I've modified shortcut's
startup dir to be %USERPROFILE%) or via jumplist tasks (with default task definitions).

Reported by mwisnicki on 2014-01-16 16:12:16

Maximus5 commented 9 years ago
I agree, this problem is bothering me too.

The ConEmu installer puts shortcuts on Desktop and in Start Menu. If you check the
Properties of these shortcuts, you will see that "Start in" is set to the ConEmu installation
dir.

So if you launch ConEmu through the shortcut, you always land in the ConEmu install
dir under Program Files, which is not usually desired and inconsistent with default
behavior of Command Prompt shortcut (CMD).

What's worse, even if you manually correct the Desktop and Start Menu shortcuts, they
get overwritten on next ConEmu update and you start in C:\Program Files\ConEmu again.

This can be easily solved if ConEmu installer puts %USERPROFILE% in the "Start in"
field of the Desktop and Start Menu shortcuts it creates.

Reported by grrnch on 2014-04-29 08:52:16

Maximus5 commented 9 years ago
I tried the suggestion in the first comment, to use the /dir %USERPROFILE% parameter
in Task Parameters for each Task, and it worked - it ignores the startup dir in the
Desktop shortcut and starts in the profile dir as desired.

Plus, the ConEmu installer doesn't overwrite Task definitions, so they will remain
intact across future updates. So, this issue is solved for me personally.

However, this solution seems less than ideal:

1) Adding /dir %USERPROFILE% to every single Task definition seems more work for the
user than the installer setting the startup dir in the Desktop and Start Menu shortcuts.

2) It is not a very obvious solution for users. I think it would be less surprising
for users if the ConEmu installer put %USERPROFILE% as startup dir in the shortcuts
it creates.

Anyway, thank you for making such an awesome and flexible terminal, that we can customize
to our liking even if the defaults are different. The Tasks and Task Parameters are
a brilliant feature.

Reported by grrnch on 2014-04-29 09:19:26