TC IrfanView Plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC IrfanView Plugin

Post by *ghisler(Author) »

Most likely you do not have access to the IrfanView folder. The readme says that when installing IV in system folders, you need to open access to it.
That's a bad idea of the plugin developer: It would allow a virus to replace the plugin dll (wlx) and then run with full admin rights when the user launches Total Commander with them.

Instead, the plugin should implement the function ListSetDefaultParams, which tells the plugin via DefaultIniName field where it should store its settings. This is the same directory where Total Commander stores the wincmd.ini. Just remove the ini nanem from DefaultIniName and append your own.
Author of Total Commander
https://www.ghisler.com
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: TC IrfanView Plugin

Post by *AkulaBig »

ghisler(Author) wrote: 2024-12-22, 08:08 UTC That's a bad idea of the plugin developer
My plugin has nothing to do with the location of the IrfanView configuration files. So it is a bad idea for IV user to place configuration files in secure folders. Because of this, the IV, not the plugin, does not work. The plugin does not need IV installed at all. I'm using the portable version of IV. In this case, you don’t even need to configure anything.
And IV itself, by default, suggests placing configuration files in %AppData%. The plugin correctly supports this path as well. But if the user decides to use the installed version of IV. At the same time, it places configuration files in protected folders, it must allow access to these folders. Because otherwise the IV, not the plugin, will not work.
Like any program that cannot change its configuration files.
Post Reply