Bug 447628

Summary: The .profile and .shortcut files aren't being read when there's an alternative Resource Folder location
Product: [Applications] krita Reporter: Jennifer Reuter <jarodragon.art>
Component: Shortcuts and Canvas Input SettingsAssignee: Halla Rempt <halla>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 5.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Jennifer Reuter 2021-12-29 04:22:38 UTC
SUMMARY
The .profile and .shortcut files in the custom allocated Resource folder aren't being read by Canvas Input Settings or Keyboard Shortcuts, despite newly created files being saved there correctly.


STEPS TO REPRODUCE
1. Allocate a different Resource Folder in General -> Resources configure options. (In my example, instead of on C:/ drive, it's: D:/UserFiles/AppData/Roaming/Krita.)
2. Duplicate "Krita Default" Canvas Input Settings in the 'Edit Profiles' popup. Rename to something else (e.g. "My Default").
3. In 'D:/UserFiles/AppData/Roaming/Krita/input', a 'mydefault.profile' gets created. (Can confirm the settings are different to Krita Default when opened in a text editor)
4. During the current session, settings are remembered.
5. Upon closing Krita, and re-opening it, the profile isn't visible within settings as an option; Krita Default gets picked again.
6. The file 'mydefault.profile' is still visible in the file explorer at the D:/ location.

The above process is equally applicable to .shortcuts files.

OBSERVED RESULT
The program does not remember, or read, the .profile or .shortcuts files in the 'input' and 'shortcuts' folders of my custom allocated Resource folder location.

EXPECTED RESULT
Upon creating my custom Input and Shortcut settings, they should save in the right resource folder AND be read from it.

SOFTWARE/OS VERSIONS
- Windows:  10, Build 19042
- C:/ is located on an SSD, D:/ is located on an HDD.

ADDITIONAL INFORMATION

I've currently gone around the problem by copying my preferred .profile and .shortcuts files into the original C: Resource location. It seems to read them fine there.
Comment 1 Bug Janitor Service 2022-01-04 09:41:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/1273
Comment 2 Halla Rempt 2022-08-09 10:59:24 UTC
Fixed with https://invent.kde.org/graphics/krita/-/merge_requests/1499