Ticket #1438 (closed defect: fixed)
[PATCH] Sort out Windows log path pre-Vista
|Reported by:||historic_bruno||Owned by:||ben|
|Priority:||Should Have||Milestone:||Alpha 11|
|Component:||Non-game systems||Keywords:||review patch|
Description (last modified by historic_bruno) (diff)
With Alpha 10, the Windows data paths for the game have changed, see #1145. Logs are placed in "local application data" but Windows Vista changed the layout of application data to be more explicitly divided between roaming and local. There's a new environment variable since Vista, %localappdata%, typically used to refer to the new path for convenience. But it doesn't exist on XP and there's no equivalent, so a path constructed with %localappdata% will fail. Here's a comparison to show what we're dealing with:
- XP/2000: C:\Documents and Settings\Ben\Local Settings\Application Data\
- Vista+: C:\Users\Ben\AppData\Local\
It's tempting to simply use e.g. "%userprofile%\Local Settings\Application Data\" as a hack, but apparently the path is localized so that would fail for many of our users (in German it's "\Lokale Einstellungen\Anwendungsdaten\").
So there's two problems. We need a consistent way of telling Windows users how to find and access the game's logs. And we need to automate this so we don't have to mention messy details like %localappdata% in the first place. If feasible, we should put the logic into the existing OpenLogsFolder.bat. If not feasible, we should delete the batch file and make a single Trac page with clear instructions. Likewise README.txt is currently incorrect and outdated.
We need one place we can refer people for finding logs and crash dumps in Windows.
- Summary changed from Sort out logs path on pre-Vista to Sort out Windows log path pre-Vista
- Keywords review patch added
- Summary changed from Sort out Windows log path pre-Vista to [PATCH] Sort out Windows log path pre-Vista