[TC 11.01RC2 64 bit and below] The value of the DETECT line for Lister plugins is not updated

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
iteg
Junior Member
Junior Member
Posts: 67
Joined: 2016-07-28, 08:36 UTC

[TC 11.01RC2 64 bit and below] The value of the DETECT line for Lister plugins is not updated

Post by *iteg »

When updating the Lister plugin, the value of the DETECT line is not updated.

Appears on any plugin.
Necessary:
1) Install a plugin that has a DETECT line.
2) Then in wincmd.ini change the value of the DETECT line for this plugin. Also, for verification, you can correct (delete or change) the contents of the installed plugin files.
3) Restart TC.
4) Install the plugin again.
5) DETECT line has not changed its value. But the plugin file set is updated with overwrite.

To solve this problem, you must explicitly remove the plugin via "Configuration\Options\Plugins\WLX\Configure\Remove" and reinstall the plugin.

It is necessary that when updating the plugin (not the first installation), the DETECT string is requested via the ListGetDetectString function and the new value is written to the configuration file. Also, to be able to remove DETECT strings with an empty value from the ListGetDetectString function.

In reality, the problem was revealed when installing a new version of the plugin, in which the plugin contained a new list of supported file extensions.

Windows 11 22H2 x64 dark mode.
User avatar
Dalai
Power Member
Power Member
Posts: 9393
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [TC 11.01RC2 64 bit and below] The value of the DETECT line for Lister plugins is not updated

Post by *Dalai »

iteg wrote: 2023-08-28, 12:05 UTCIt is necessary that when updating the plugin (not the first installation), the DETECT string is requested via the ListGetDetectString function and the new value is written to the configuration file.
Absolutely not! This would overwrite any changes the user made. This topic has been discussed before with several suggestion on how it would be practical without overwriting user-made changes (x_detect_custom IIRC).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01RC2 64 bit and below] The value of the DETECT line for Lister plugins is not updated

Post by *ghisler(Author) »

That's exactly the reason why no detect strings are getting updated when you update a plugin.

Moderator message

Moved to will not be changed
Author of Total Commander
https://www.ghisler.com
Post Reply