AppData\Local\Ghisler gets created, settings elsewhere

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Steps to reproduce with tc 7.57a (windows 7 x64):

1. Start TC with a new empty ini (e.g. Button in TC8.0 with parameter "/n /i="%%TEMP%%\TMP.ini""
2. left Panel: cd %LOCALAPPDATA%
3. <Shift+Del> the folder GHISLER (first delete!)
4. right Panel: cd %TEMP%
5. create some temp. files inside %TEMP% folder
6. <Shift+Del> one of the temp. files (second delete!)
7. <Tab> to the left panel
8. <F2> Refresh
-> folder %LOCALAPPDATA%\GHISLER is not created!

9. Restart TC with the same INI file
11. <Tab> to the right panel
10. <Shift+Del> a temp file in %TEMP% folder
11. <Tab> to left panel
12. <F2> Refresh
-> folder %LOCALAPPDATA%\GHISLER is created!

Regards
Holger
User avatar
white
Power Member
Power Member
Posts: 5812
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

HolgerK wrote:1. Start TC with a new empty ini (e.g. Button in TC8.0 with parameter "/n /i="%%TEMP%%\TMP.ini""
So you did not disable thumbnail caching? Can disable thumbnail caching, restart TC and try again?
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Okay, with disabled thumbnail cache neither TC7.57a/7.56a nor TC8.0(x86/x64) creates %LOCALAPPDATA%\GHISLER.

Still: it's not a new bug introduced with TC8.0!

Regards
Holger
User avatar
white
Power Member
Power Member
Posts: 5812
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

umbra wrote:Not confirmed in Win7 nor in Win8. So if it really happens, it must be WinXP specific.
BTW, that directory is not just for thumbnails - if a drive root is unwritable, *.wc files for Directory Tree are stored there too (and who knows what else).

EDIT:
Ok, scratch that. I just reproduced it too using TC8 x32 and x64. Steps to reproduce it are very simple. If 'AppData\Local\GHISLER\' exists, when TC is started, the first attempt to rename/delete it will recreate it.
Confirmed for TC8 32 bit and Windows XP and thumbnail caching off.

When the %LOCALAPPDATA%\GHISLER folder not exists, it is created as soon a folder is created somewhere on the C: drive (refresh your display afterwards). This only happens when using TC 8 beta 10 and above.
User avatar
HolgerK
Power Member
Power Member
Posts: 5409
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

white wrote:When the %LOCALAPPDATA%\GHISLER folder not exists, it is created as soon a folder is created somewhere on the C: drive (refresh your display afterwards). This only happens when using TC 8 beta 10 and above.
Seems to be related to:
History.txt wrote:25.11.11 Release Total Commander 8.0 public beta 10 (32/64)
...
22.11.11 Added: Alt+F10 tree: If TreeFileLocation isn't set, save the tree in the same location as the thumbnail cache in the following cases: 1. network shares, 2. the drive containing the windows directory (revert to default with TreeFileLocation=%R%treeinfo.wc) (32/64)
Trying to update a non existing treefile...

Regards
Holger
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

2white
Thanks for confirming my observations. However, in your quote, you forgot to include my last sentence:
umbra wrote:But my original opinions stays - is it really such a big issue?
I mean, what's so bad about the fact, that TC creates a settings folder even if it doesn't necessarily need to (and who knows, maybe it does need to do it). If it's not created when you rename a directory, then it will be created when you use thumbnails or a directory tree (or some else feature, that requires it).
Don't get me wrong, if it can be prevented, then why not. But for such a minor issue, the discussion here is too big. There are much bigger issues in TC right now.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The folder is created by a background thread which is responsible for copying thumbnails with files. It tries to access the thumbnails file, and creates the path if it isn't there yet.
Author of Total Commander
https://www.ghisler.com
Post Reply