| View previous topic :: View next topic |
| Author |
Message |
Andreas Leuner Junior Member

Joined: 24 Feb 2012 Posts: 4
|
Posted: Fri Feb 24, 2012 8:59 am Post subject: Wrong directory argument for Directory\shell command |
|
|
I have been a regular user of total commander for a few years. I also use msysgit and its "Git Bash here" windows explorer shell extension.
Since (I think) updating Total Commander to version 7.56 I started to notice the following:
Total Commander (On Windows 7) sometimes passes the wrong directory if I open a context menu with shift+menu key and then "open command window here". Well I originally noticed "Git Bash here" misbehaving, but reproduced the problem with default Windows 7 functionality.
If the wrong directory is opened in the shell it is that of the opposite panel.
This seems to happen if that other panel had the most recent directory change - or after startup - that other panel is the right-side panel.
If I use the right mouse button instead of menu key to open the context menu the problem does not occur.
If I invoke the properties entry from the context menu - problem does not occur either, i. e. the properties of the correct directory are always shown.
The problem does occur if I use another Directory\shell command like "Git Bash here". This gets the directory argument passed in the same way as "open command window here" - but just in case...
From a windows explorer window - either with rmb or menu key - no problems. |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24590 Location: Switzerland
|
Posted: Fri Feb 24, 2012 11:06 am Post subject: |
|
|
It sounds like that shell extension doesn't use the parameters passed to it (item-idlist), but uses the current directory at the time of launch. This may also be the other panel, depending on what the use did before in Total Commander. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Andreas Leuner Junior Member

Joined: 24 Feb 2012 Posts: 4
|
Posted: Mon Feb 27, 2012 10:04 am Post subject: |
|
|
Would it be feasible to make Total Commander change its current directory upon switching panels?
Edit: spelling |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24590 Location: Switzerland
|
Posted: Tue Feb 28, 2012 3:30 am Post subject: |
|
|
I will check whether it could be added to TC8, but it needs extensive testing to avoid any negative side effects. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Andreas Leuner Junior Member

Joined: 24 Feb 2012 Posts: 4
|
Posted: Tue Feb 28, 2012 8:27 am Post subject: |
|
|
I have now updated Total Commander to version 7.57 to see if there are any differences - same behaviour.
I also rechecked my Directory\shell registry hacks and found that I had broken the "open command window here" key.
I reverted those changes and could no longer reproduce my problem afterwards.
Sorry for the noise.
The Git bash behaviour may well be because bash does not understand a windows path argument at all. msys normally converts paths like this C:\Users -> /c/Users but that does not work for arbitrary strings that are provided "from the outside".
So changing the current directory upon panel switch isn't needed for correctly supporting default windows functionality but would certainly be nice to have. |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24590 Location: Switzerland
|
Posted: Wed Feb 29, 2012 2:10 am Post subject: |
|
|
Any news? I would like to release TC 7.57a this week, but it's difficult without any feedback at all... _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Andreas Leuner Junior Member

Joined: 24 Feb 2012 Posts: 4
|
Posted: Wed Feb 29, 2012 5:56 am Post subject: |
|
|
Ahem, maybe you meant to post in another thread? Because you wrote that any changes could be for TC8 at the earliest?
(And since I gave further info that probably clarifies this problem as my problem ) |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24590 Location: Switzerland
|
Posted: Wed Feb 29, 2012 2:26 pm Post subject: |
|
|
Sorry, this was meant for the thread "Directory count not working on space bar".
As I understand it, you could resolve your problem yourself. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
|