Bug 456228

Summary: Broken resource path after changing username in windows
Product: [Applications] krita Reporter: teukka.help
Component: Resource ManagementAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: amy
Priority: NOR    
Version First Reported In: 5.0.6   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description teukka.help 2022-07-02 06:54:30 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Install Krita
2. Change username from windows
3. Try to open krita

OBSERVED RESULT
Error: 1. could not create the resource location
This didn't get fixed with a reinstall, but after deleting the kritarc and other configuration files that persist after uninstalling and reinstalling, it started working again.

EXPECTED RESULT
Krita should open up normally and be able to update the path to
C:\Users\{current_user}\AppData\Roaming\krita

SOFTWARE/OS VERSIONS
Windows: 11 Home 21H2 22000.739
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 amyspark 2022-07-02 16:42:59 UTC
Confirming. ResourceDirectory and ResourceCacheDbDirectory are hardcoded in the preferences file and do not provide a way to detect they refer to the user's account folder.