Bug 260685

Summary: Keyboard shortcuts in System Tray does not work after relogin
Product: [Plasma] plasma4 Reporter: Andrew Trabo <v01d3r>
Component: widget-systemtrayAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: hanswchen, tprotopopescu
Priority: NOR    
Version: 4.6.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on: 288195    
Bug Blocks:    

Description Andrew Trabo 2010-12-19 08:51:38 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

After I'm setting up keyboard shortcuts for 'Network Monitor' and 'Device Manager' in 'System Tray' plasmoid they work until I relogin to the system - after that shortcuts disappear. 

I was trying to set up shortcuts, save 'kglobalshortcuts' file, logout, replace 'kglobalshortcuts' file with saved one and login as well, but this does not worked for me too.

Reproducible: Always

Steps to Reproduce:
Go to 'System Tray Settings' or 'Network Management Settings' and 'Device Notifier Settings'; Set up shortcuts for 'Network Management' and/or 'Device  Notifier'; Logout; Login.

Actual Results:  
Shortcuts does not work anymore. 

Expected Results:  
Shortcuts should work after relogin.

On KDE Forums I got an answer, that "This is probably because the System Tray applet is setting the applets up freshly on each startup." So, maybe this problem affects other plasmoids in 'System Tray' plasmoid too.
Comment 1 Hans Chen 2011-06-27 18:37:01 UTC
I can confirm this in 4.6.3.

I first noticed it when I tried to implement the keyboard shortcut feature for my own widget, but I can also reproduce with the Battery Monitor and Device Notifier widgets. They all work when the widget is placed on the desktop instead.

Note: restarting plasma-desktop is enough to reset the shortcuts.
Comment 2 tprotopopescu 2012-02-16 00:20:41 UTC
I can also confirm this in 4.6.0 (with openSUSE 11.4). The Hibernate (Fn+12) shortcut does not work on my Thinkpad; this is because the default key setting for Hibernate in kglobalshortcuts, in the 'kded' section, is called 'Hibernate', whereas the Fn+F12 key combination is in fact called 'Suspend'. Editing kglobalshortcuts directly, or setting the shortcuts through Personal Settings > Shortcuts and Gestures > Global Shortcuts. Restarting plasma-desktop is enough to reset the defaults, the kglobalshorcuts file returns to its previous unmodified state.

Note changes made to other sections of the kglobalshortcuts file, or changing the shortcuts for other KDE components in Global Shortcuts, are retained after restarting plasma-desktop or logging in again.
Comment 3 Myriam Schweingruber 2012-05-21 22:27:19 UTC
This should be fixed in KDE 4.8.x, could you please test?
Comment 4 Hans Chen 2012-05-21 23:04:45 UTC
(In reply to comment #3)
> This should be fixed in KDE 4.8.x, could you please test?

Seems to be fixed for me in 4.8.3.
Comment 5 Myriam Schweingruber 2012-05-21 23:14:56 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > This should be fixed in KDE 4.8.x, could you please test?
> 
> Seems to be fixed for me in 4.8.3.

Thank you for the fast feedback.
Comment 6 Hans Chen 2012-05-21 23:46:24 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > This should be fixed in KDE 4.8.x, could you please test?
> > 
> > Seems to be fixed for me in 4.8.3.
> 
> Thank you for the fast feedback.

Thank you too. I hadn't heard anything about this bug being fixed; it's very nice for both users and developers when reports are followed up and closed. :)