Bug 285884

Summary: Shortcut changes aren't saved
Product: [Applications] digikam Reporter: Frédéric COIFFIER <frederic.coiffier>
Component: Usability-KeyboardAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 2.2.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 2.4.0
Sentry Crash Report:

Description Frédéric COIFFIER 2011-11-06 10:59:01 UTC
Version:           2.2.0 (using KDE 4.7.3) 
OS:                Linux

A new configuration of Shortcuts isn't remembered.

Reproducible: Didn't try

Steps to Reproduce:
1. Open Settings | Configure Shortcuts
2. For example, select "Configure Digikam" and assign  "Shift+H" and close the Dialog box with "OK"
3. Press "Shift+H" -> Configuration dialog box is opened
4. Exit Digikam
5. Reopen Digikam
6. Press "Shift+H" -> It doesn't work


Actual Results:  
After closing Digikam, any modifications to Keyboard shortcuts are lost.

Expected Results:  
Normally, these modifications should be restored.
Comment 1 caulier.gilles 2011-11-06 11:06:57 UTC
Not reproducible here.

I assigned CTRL+H to "configure digiKam" and all work fine between sessions.

Gilles Caulier

Note : here, i use KDE 4.6.3. Standard action shortcuts are managed by KDELibs. Perhaps there is a bug in your KDE. It's reproducible with another application as Kate for ex ?
Comment 2 caulier.gilles 2011-11-06 11:12:43 UTC
Idem if i assign "SHIFT + H". It's not a digiKam problem for me...

Gilles Caulier
Comment 3 Frédéric COIFFIER 2011-11-07 10:07:42 UTC
Even if short cuts are managed by KDElibs, it seems that my problem was due to Digikam (maybe an old migration ?).

In ~/.kde4/share/apps/digikam :
total 24
drwx------   2 fcoiffie users 4096  7 nov.  10:56 .
drwx------ 132 fcoiffie users 4096  3 nov.  18:41 ..
-rw-r--r--   1 fcoiffie users  992 18 févr.  2009 albumtreestate.bin
-rw-r--r--   1 fcoiffie users  312  5 oct.  11:04 cameras.xml
-rw-r--r--   1 fcoiffie users 2821 18 févr.  2009 digikamimagewindowui.rc.backup
-rw-r--r--   1 fcoiffie users    0  7 nov.  10:57 digikamui.rc
-rw-r--r--   1 fcoiffie users 3844 18 févr.  2009 digikamui.rc.backup
-rw-r--r--   1 fcoiffie users    0 31 janv.  2010 lighttablewindowui.rc.backup

We can see very old .backup files maybe created during a migration and the digikamui.rc which is empty.

After removing the .backup files and the digikamui.rc, Digikam is able to store my short cuts changes and this file is no longer empty :

-rw-r--r--   1 fcoiffie users 5817  7 nov.  11:00 digikamui.rc

And now, the configuration works fine.
You can close the bug report if nobody else has reported a similar bug.