[REQ] Automatic plugins path replace

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

[REQ] Automatic plugins path replace

Post by *fenix_productions »

Hi all.

I hope it's not too late ;)

When I am adding some plugins to my TC I have to always remember about replacing their paths with %COMMANDER_PATH% variable (or start PlugMan) each time.

Wouldn't it be better if TC could do that automatically if plug is in it's subdirectory?

Of course it should be configurable and work for button bar's application too.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

Hello fenix_productions,
If I understood correctly :roll: ....

Can't help this?

Code: Select all

[Configuration]
pluginbasedir=%COMMANDER_PATH%\Plugins
Regards.
I can read English, but... I write like Tarzan. (sorry)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2Sombra: Yes, I'm using this too :)

... and the very best: It is taken to build the path at every new installed plugin without resolving it (remains %COMMANDER_PATH%\Plugins)
#5767 Personal license
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Sombra
Isn't it working for automatic (INF inside archive) plugins installation only? I could swear that that I have this INI entry set properly. Oh! I am always adding my plugs using Configuration dialog.

I am on Mac now and can't check it...
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50509
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, this is used for automatic installation. How should TC know that it should use it for manual installation when you pick the name via a "File open" dialog?
Author of Total Commander
https://www.ghisler.com
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

How should TC know that it should use it for manual installation when you pick the name via a "File open" dialog?
Just replace the path proactivly like:
e.g. VB:

Code: Select all

Replace(PluginFilename, Environ("COMMANDER_PATH"), "%COMMANDER_PATH%")
... just one line of code after the plugin path is chosen manually.

This makes it easy to add a plugin directly even from an USB-Stick (which tends to change the drive letter very often).
#5767 Personal license
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

2fenix_productions
Isn't it working for automatic (INF inside archive) plugins installation only?
You are right. I missed the context in you first post, and understood it later... reading the next posts in thread.
I can read English, but... I write like Tarzan. (sorry)
Post Reply