Commit a2998d0
fix: Use proper app support directory for config storage (#74)
Move config.json from Documents folder to the proper application
support directory (AppData\Roaming on Windows, ~/.local/share on Linux,
~/Library/Application Support on macOS).
This fixes the app hanging on startup on Windows 11 25H2 when the
Documents folder is inaccessible (OneDrive sync issues, permissions,
network redirects, etc.).
Changes:
- Use getApplicationSupportDirectory() instead of getApplicationDocumentsDirectory()
- Add 10-second timeout on directory resolution
- Ensure directory exists before writing config
- Add try-catch in SettingsBloc to emit error state instead of hanging
Fixes: CCExtractor/ccextractor#1936
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent cfaab6c commit a2998d0
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
18 | 30 | | |
19 | 31 | | |
20 | 32 | | |
| |||
0 commit comments