Bug 456228 - Broken resource path after changing username in windows
Summary: Broken resource path after changing username in windows
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Resource Management (other bugs)
Version First Reported In: 5.0.6
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-02 06:54 UTC by teukka.help
Modified: 2022-07-02 16:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.