If redirected INI is inaccessible, TC warns about main INI

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

If redirected INI is inaccessible, TC warns about main INI

Post by *MVV »

Simple test:
1. Edit wincmd.ini: add to e.g. [Colors] section parameter RedirectSection=C:\Windows\test.ini (enter path to folder where TC have no write permissions),
2. Restart or start new TC,
3. Open Configuration/Colors and try to change something and then save...

TC warns that it can't save wincmd.ini. Hovewer, it can't save not wincmd.ini but C:\Windows\test.ini (which is used for redirection). :!:

I think it would be much more informative if TC write correct path to INI that can't be accessed/written.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately TC doesn't know about the redirection in the function where it reports the ini write error - the redirection occurs at a deeper level. I think that people who are clever enough to use redirection will notice themselves that the error was in the redirected ini.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Hm, you should know exactly what INI is inaccessible when you got error - so why not to pass INI path to report function?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I would have to change too many functions (there are 100s using the ini functions), and I didn't find it important enough to spend so much time on it. There are much more important things to do...
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, thanks for the answer. :)
Post Reply