Plugin path

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
Giovanni
Member
Member
Posts: 154
Joined: 2005-03-23, 18:28 UTC

Plugin path

Post by *Giovanni »

Specifying plugin path names differs between versions.
Example, plugins are stored at: %COMMANDER_PATH%\Plugins\

[ListerPlugins]
0=%COMMANDER_PATH%\Plugins\wlx\myplugin.wlx64
1=Plugins\wlx\myplugin.wlx

With 32bit, you can specify relative folder (just like TC7.5x)
With 64bit, you have to specify %COMMANDER_PATH%\
Giovanni
Member
Member
Posts: 154
Joined: 2005-03-23, 18:28 UTC

Post by *Giovanni »

I found this in history.txt:

Code: Select all

14.08.11 Added: When browsing for plugins, also look for extension with '64' at the end. Cut off the '64' if there is a 32-bit plugin with the same name in the same directory (64)
So I changed the .ini file to this:

Code: Select all

[ListerPlugins]
0=Plugins\wlx\myplugin.wlx 
Works with 32bit only.

Changing to this

Code: Select all

[ListerPlugins]
0=%COMMANDER_PATH%\Plugins\wlx\myplugin.wlx
Works with 32bit and 64bit.


IMHO I think that the 64bit version should be adapted to work just like old versions without the need for %COMMANDER_PATH%\
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

This was a known bug for TC 8.0 beta 1 - have you tried beta 2 ??
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Giovanni
Member
Member
Posts: 154
Joined: 2005-03-23, 18:28 UTC

Post by *Giovanni »

Yes - this is using beta 2.
User avatar
petermad
Power Member
Power Member
Posts: 16031
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Giovanni

Sorry, after reading your report again, I can see that it is not the same bug - the other bug was about TC 8.0b1 x64 not being able to use %%COMMANDER_PATH% for content plugins.

I can confirm that relative path doesn't work any more in TC 8.0b2 x64.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50531
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, it's probably just a coincidence that relative paths work in 32-bit. I will check whether I can support them also in 64-bit.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50531
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have decided NOT to support this, sorry. Please use the %commander_path% variable. It seems that the 64-bit dll functions are more cautions with the locations from which they load dlls.
Author of Total Commander
https://www.ghisler.com
Post Reply