Moving the System menu breaks the screensaver kcontrol module

Bug #46599 reported by benj carson
14
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: kmenuedit

If the default KDE System menu is moved to a sub-menu, the screensaver module in kcontrol is no longer able to load the list of screensavers. For example a menu like so will break the screensavers:

Full Menu
     + Development
     + Graphics
     + Internet
     + System
Home
Add/Remove Packages
...

The problem seems to be because KDE relies on having the (hidden) screensaver menu at the menu path System/ScreenSavers but kmenuedit moves the entire System menu without preserving the Screensaver path. According to http://docs.kde.org/development/en/kdebase/userguide/kde-menu.html#essential-menus the ScreenSavers sub-menu is "essential".

I've been able to edit my menu by hand (in ~/.config/menus/applications-kmenuedit.menu) in order to work around this issue. Instead of using <Move> tags to change the location of the System menu, I create a *copy* of it by repeating its definition in a new sub-menu and then applying a <Delete/> element to the root System menu. The screensaver module seems to be tolerant to this change.

The original System menu definition can be found in /etc/xdg/menus/kde-applications.menu

I can post example application-kmenuedit.menu files that demonstrate the problem, if required.

Revision history for this message
chavo (chavovaldez) wrote :

I can confirm this behavior. After moving all menus into a submenu my screensavers no longer function. They are not listened in the control center applet at all.

Rich Johnson (nixternal)
Changed in kdebase:
status: Unconfirmed → Confirmed
Revision history for this message
Rocco Stanzione (trappist) wrote :

+1, though I never moved the screensavers submenu item (I'm 99% sure of this). It's not where it apparently should be, though. This is on Edgy.

Revision history for this message
Rocco Stanzione (trappist) wrote :

Oh. I'm missing the whole System menu.

Revision history for this message
Rocco Stanzione (trappist) wrote :

Now I understand. I eliminated the problem by commenting out the problem section like so:

<!-- <Move>
  <Old>System</Old>
  <New>Utilities/System</New>
 </Move> -->

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

kcm modules no longer use the .menu system in Intrepid + onwards, solving this bug.

Changed in kdebase:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.