Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wrong directory argument for Directory\shell command

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
Andreas Leuner
Junior Member
Junior Member


Joined: 24 Feb 2012
Posts: 4

PostPosted: Fri Feb 24, 2012 8:59 am    Post subject: Wrong directory argument for Directory\shell command Reply with quote

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
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Fri Feb 24, 2012 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Andreas Leuner
Junior Member
Junior Member


Joined: 24 Feb 2012
Posts: 4

PostPosted: Mon Feb 27, 2012 10:04 am    Post subject: Reply with quote

Would it be feasible to make Total Commander change its current directory upon switching panels?

Edit: spelling
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Tue Feb 28, 2012 3:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Andreas Leuner
Junior Member
Junior Member


Joined: 24 Feb 2012
Posts: 4

PostPosted: Tue Feb 28, 2012 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Wed Feb 29, 2012 2:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Andreas Leuner
Junior Member
Junior Member


Joined: 24 Feb 2012
Posts: 4

PostPosted: Wed Feb 29, 2012 5:56 am    Post subject: Reply with quote

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 Wink )
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24590
Location: Switzerland

PostPosted: Wed Feb 29, 2012 2:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC7.56(a)/7.57 bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group