Page 1 of 1

Suggestion: Store .db in %LOCALAPPDATA% on Windows

Posted: Thu May 10, 2012 3:38 pm
by Jou
The xnview.db is currently stored in %appdata%\xnview\xnview.db.
The better place would be: %localappdata%\xnview\xnview.db.

The rest (config etc) has to stay in %appdata%\xnview

Reason: %appdata% is copied when server stored user profiles are used, %localappdata" is not copied around.
Firefox, Seamonkey, Internet explorer use %localappdata% by default to store the cache too, avoiding the same problem.
Most other programs do the same for non-important data like cache or temp or redo files.

the %localappdata% exists since windows 2000, previous Windows versions don't have it.

EDIT:
%localappdata% environment is in some cases not defined though it should be, the registry key still contains the right value then:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Local AppData