Recursion if OPENTABS loads a dir which has Auto-run command

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6979
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Recursion if OPENTABS loads a dir which has Auto-run command

Post by *Horst.Epp »

I have a view mode which uses a Auto-run command to execute a Opentabs command which loads many tabs in the inactive side.
IF I let TC Auto switch to this mode entering a certain directory leads to recursive execution of TC and Opentabs which can only be stopped with the Task manager.
This happens if file used with Opentabs also contains the directory as active side.
TC should never excecute a Auto-run command from a View mode
if the active dir is the same as before.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, I have made this quite powerful, but it requires the user to THINK. I can disable recursive commands as it was a few betas before, but people will complain then too.

Btw, holding down ESC should abort it.
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6979
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

ghisler(Author) wrote:Yes, I have made this quite powerful, but it requires the user to THINK. I can disable recursive commands as it was a few betas before, but people will complain then too.

Btw, holding down ESC should abort it.
ESC did not stop it.
Believe me I think before configuring :)
I programmed real time OS's for many years which recursion in many ways.
But I thing you should disable recursive commands in TC
as there is no feature to automatically stop it at a certain level.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

So what do you suggest? If I disable auto-run commands when using Opentabs, then users will complain. If I disable Opentabs in auto-run commands, then people will complain too...
Author of Total Commander
https://www.ghisler.com
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6979
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

ghisler(Author) wrote:So what do you suggest? If I disable auto-run commands when using Opentabs, then users will complain. If I disable Opentabs in auto-run commands, then people will complain too...
Its simple, just do not run Auto-run commands if new active dir is the same as previous one.
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50550
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

For now I will not change it. Wha you suggest wouldn't help because the user may still want to apply a view mode manually, and then the command would have to be run every time.
Author of Total Commander
https://www.ghisler.com
Post Reply