Bug 407839 - Custom shortcuts constantly getting wiped
Summary: Custom shortcuts constantly getting wiped
Status: RESOLVED DUPLICATE of bug 415906
Alias: None
Product: krita
Classification: Applications
Component: Shortcuts and Canvas Input Settings (show other bugs)
Version: git master (please specify the git hash!)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-22 18:31 UTC by Storm Engineer
Modified: 2020-01-05 22:14 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Storm Engineer 2019-05-22 18:31:23 UTC
I've lost my custom shortcuts at least ten times by now and I'm still confused about what is going on.

I would set a bunch of custom shortcuts, and they work. I can quit Krita and they will be in place when I start again.

However, trying to save them into a custom scheme will wipe everything from BOTH current settings AND the scheme you are saving, except those shortcuts you changed during the present run of Krita.


STEPS TO REPRODUCE
1. Set a few custom shortcuts and save them in a scheme.
2. Restart Krita.
3. Change a shortcut, and save the scheme again.

OBSERVED RESULT
All previously set shortcuts will be wiped and stop working, and the scheme file will contain only the last change, not the shortcuts saved previously.

EXPECTED RESULT
Saving a scheme should preserve everything currently in effect, and save that all into the scheme.


Krita

 Version: 4.2.0-beta (git 4cb9902)
 Languages: en_US
 Hidpi: false

Qt

  Version (compiled): 5.12.3
  Version (loaded): 5.12.3

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.0.13-arch1-1-ARCH
  Pretty Productname: Arch Linux
  Product Type: arch
  Product Version: unknown


Hardware Information

  GPU Acceleration: auto
  Memory: 16006 Mb
  Number of Cores: 8
  Swap Location: /tmp
Comment 1 tusooa 2019-05-23 10:25:38 UTC
Can confirm this on Windows 10 / Krita 4.1.1.
Comment 2 vanyossi 2020-01-05 22:14:38 UTC
Yes there is a hige confusion in krita as to how to manage default.shortcuts files, session shortcuts and new shortcuts.

The conbobox does work and so does load and save, however on selecting "New" a .shortcuts file will be created with a copy of the current set shortcuts. After that Saving will not overwrite such file but ask to save a new copy somewhere. the saved file is not used when changing from the combobox, for that the file must be in $CONFIG_KRITA/shortcuts .

This gets buggier when combining this with the default.shortcuts as installed files are not modified, so instead current shortcuts are probably (haven't fully tested, but it appears to do so) loaded from $PREFERENCES/kritashortcuts.rc which has all the shortcut used as the last session. So any shortcut modification is saved in the kritashortcuts.rc but not in defaultshortcuts.rc or your personal shorcuts file, will be lost when you select a different shortcut profile from the combobox.

*** This bug has been marked as a duplicate of bug 415906 ***