(Solved) [x64] Crash with ReplaceIniLocation + ShellDetails

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

(Solved) [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *Stiltzkin »

steps to reproduce:

windcmd.ini:

Code: Select all

[ReplaceIniLocation]
RedirectSection=%COMMANDER_PATH%\Settings\plugins.ini
plugins.ini:

Code: Select all

[ReplaceIniLocation]
ShellDetails.wdx=%commander_path%\Settings\Plugins\ShellDetails.ini
then select a custom column with ShellDetails columns or even try 'configure custom columns' -> crash without errormsg.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *ghisler(Author) »

The [ReplaceIniLocation] function does not support environment variables - I will add it. Can you try with a complete path, please?
Author of Total Commander
https://www.ghisler.com
Stiltzkin
Member
Member
Posts: 182
Joined: 2004-09-10, 17:15 UTC

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *Stiltzkin »

it works as intended with a static path, yes:

tested with

Code: Select all

[ReplaceIniLocation]
ShellDetails.wdx=D:\Totalcmd\Settings\Plugins\ShellDetails.ini
davplug.wfx=D:\Totalcmd\Settings\Plugins\tcwebdav.ini
both work. thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *ghisler(Author) »

Great, then I will just have to replace the environment variables before passing the path to the plugin.
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *Hurdet »

I have similar problem with 7zip.
Do plugin have to support *SetDefaultParams function?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *ghisler(Author) »

ReplaceIniLocation only sends the location to the plugin via SetDefaultParams. It depends on the plugin whether it supports that or not.
Author of Total Commander
https://www.ghisler.com
Hurdet
Power Member
Power Member
Posts: 620
Joined: 2003-05-10, 18:02 UTC

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *Hurdet »

Where to find documentation to update a wcx?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *ghisler(Author) »

In the normal CHM for packer plugins available on our plugins page. It has been like this for many years.
Look for the function
PackSetDefaultParams
especially the parameter
DefaultIniName
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [x64] Crash with ReplaceIniLocation + ShellDetails

Post by *petermad »

history.txt wrote:12.03.21 Added: wincmd.ini, section [ReplaceIniLocation]: entries didn't support environment variables like %commander_path% (32/64)
Confirmed fixed in TC 10 b2 :-=
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply