Solved [TC 10 v1a] Confusing help for [ReplaceIniLocation]

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Solved [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *petermad »

Help wrote:[ReplaceIniLocation] Set a different ini file location for specific plugins, via function *SetDefaultParams, parameter DefaultIniName
pluginname.ext= New location of ini file sent to the plugin. The plugin name must be specified without path, and with extension as configured in wincmd.ini, e.g. sftpplug.wfx
Special values:
* send default value, but redirect to user profile if location not writable (default for packer, file system, and content plugins)
- send default value, but do not redirect to use profile (default for content plugins)
First of all the example should be complete like it is in history.txt:
history.txt wrote:07.03.21 Added: wincmd.ini, new section [ReplaceIniLocation]: Change location of ini file settings each plugin uses, via line pluginfile.ext=c:\path\newinifile.ini (32/64)
The Help doesn't indicate that it has to be the New location including the file name - to me location means a directory, not a file (c:\path\ is the location of the file newinifile.ini).

Secondly it says that * is default for content plugins, but also that - is default for content plugins - how can that be?

Finally I guess that "do not redirect to use profile" should be "do not redirect to user profile" (typo).
Last edited by petermad on 2021-06-01, 22:29 UTC, edited 1 time in total.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *ghisler(Author) »

It works also without the ini name when you either use a trailing backslash, or indicate an existing directory.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *petermad »

It works also without the ini name when you either use a trailing backslash, or indicate an existing directory.
Also worth to mention in the Help.
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *petermad »

Help improved in TC 10 b2 :-)
* send default value, but redirect to user profile if location not writable (default for packer, file system, and content plugins)
- send default value, but do not redirect to use profile (default for content plugins)
But - I still cannot understand how both options can be default for content plugins - and there is still an r missing in user in the second line
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *ghisler(Author) »

You can't have both options. Option 1 sends the default path (that of the wincmd.ini) to the plugin, but if the plugin ignores it and tries to write elsewhere like its own directory, TC redirects that to the user profile.
Option 2 also sends the default path to the plugin, but doesn't care when the plugin fails to write to its ini.
And thanks about the missing r, I missed that in your report.
Author of Total Commander
https://www.ghisler.com
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *Usher »

Just precising a little bit the second option would be enough, I think (bold red letters added):
* send default value, but redirect to user profile if location not writable (default for packer, file system, and content plugins)
- send default value, but do not redirect to user profile on fail (default for content plugins)
Andrzej P. Wozniak
Polish subforum moderator
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *ghisler(Author) »

OK, I will change it like that.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 v1a] Confusing help for [ReplaceIniLocation]

Post by *petermad »

This topic should be placed in "Fixed bugs" not in "TC Behaviour which will not be changed"
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply