How to disable files in "%AppData%\GHISLER\redirect"?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1183
Joined: 2012-03-23, 18:15 UTC
Location: UA

How to disable files in "%AppData%\GHISLER\redirect"?

Post by *MaxX »

I have per-user configured Imagine (wlx) in
C:\Users\User\AppData\Roaming\Imagine\Imagine.ini
with readonly attr.

How can I avoid it's copy in
C:\Users\User\AppData\Roaming\GHISLER\redirect\C_\Users\User\AppData\Roaming\Imagine\Imagine.ini
path?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Dalai
Power Member
Power Member
Posts: 9999
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to disable files in "%AppData%\GHISLER\redirect"?

Post by *Dalai »

Set

Code: Select all

[Configuration]
RestrictInterface=8192
(or add 8192 to its value if already present).
TC help, section 4.b), part 2 wrote:RestrictInterface=
Disable parts of the user interface. Just build the sum of the following options:
[...]
8192: Do not redirect plugin ini files to user profile
#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
MaxX
Power Member
Power Member
Posts: 1183
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: How to disable files in "%AppData%\GHISLER\redirect"?

Post by *MaxX »

Does it have any GUI dialogs or cm_*** lines to change on the go?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Dalai
Power Member
Power Member
Posts: 9999
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to disable files in "%AppData%\GHISLER\redirect"?

Post by *Dalai »

I don't know, but I doubt. A plugin will probably need to be unloaded to change the settings file location, so changing it while TC is running is not so easy. Apart from that I don't see the point in changing something like this on-the-fly. What would be the benefit?
#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
beb
Power Member
Power Member
Posts: 587
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: How to disable files in "%AppData%\GHISLER\redirect"?

Post by *beb »

1. Why not try TC's plugins' ini relocation function?
wincmd.ini:

Code: Select all

[ReplaceIniLocation]
Imagine.wcx=%AppData%\Imagine\Imagine.ini
Imagine.wdx=%AppData%\Imagine\Imagine.ini
Imagine.wlx=%AppData%\Imagine\Imagine.ini
2.
Dalai wrote: 2025-05-20, 12:08 UTC Set

Code: Select all

[Configuration]
RestrictInterface=8192
(or add 8192 to its value if already present).
MaxX wrote: 2025-05-20, 16:49 UTC Does it have any GUI dialogs or cm_*** lines to change on the go?
I suppose UltraTC\ConfigurationEditor could provide a GUI for that.
Otherwise, you could automate it via a corresponding custom user em_* command.

3.
I have per-user configured Imagine (wlx) in
2MaxX
In this use case, it is also supposed that you have the non-zero IndividualOptionPerUser parameter in
Imagine\Imagine.ini, e.g.

Code: Select all

[Option]
IndividualOptionPerUser=1
At first, Imagine tries if its ini is in the AppData.
If the AppData\Imagine\Imagine.ini is there, Imagine tries to read the IndividualOptionPerUser option.
And if the IndividualOptionPerUser option is there and is non-zero, then Imagine would use its ini from the AppData.
Also, I'm curious whether the TC moves Imagine.ini from theAppData\Imagine\Imagine.ini location to the AppData\GHISLER\redirect\... one, or it creates Imagine.ini in the latter location when it didn't exist in the former one?
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
MaxX
Power Member
Power Member
Posts: 1183
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: How to disable files in "%AppData%\GHISLER\redirect"?

Post by *MaxX »

2beb
1. I also get duplicates of them
C:\Users\User\AppData\Roaming\GHISLER\redirect\C_\Totalcmd\Plugins\wlx\Imagine\Imagine.ini
with readonly attr.
3. Also have "IndividualOptionPerUser=0" on another PC. No difference.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
beb
Power Member
Power Member
Posts: 587
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: How to disable files in "%AppData%\GHISLER\redirect"?

Post by *beb »

2MaxX
I have made a script that (as a standalone, or wrapped into a user em command) automates the RestrictInterface=8192|RestrictInterface=x+8192 parameter setup on the go.
However, I cannot be sure if it is worth publishing until the RestrictInterface value collisions issue gets clarified.
See: viewtopic.php?t=85872
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Post Reply