alacarte does not remove main menu item

Bug #413728 reported by Wade Pedersen
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
gnome-menus
New
Low
gnome-menus (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: alacarte

Binary package hint: alacarte

Using Preferences>Main Menu, I removed FreeCell from the Games menu. After closing, FreeCell is still visible in the Applications>Games menu. Removing other items and restoring them seems to work properly such as Terminal Client and Remote Desktop Viewer.

Upon further testing, I noticed that the problem expands to the items in the submenu of Games (excepting other submenus such as Logic), but you can still remove the submenu by unchecking it from Applications.

Description: Ubuntu karmic (development branch)
Release: 9.10

alacarte:
  Installed: 0.12.1-1ubuntu1
  Candidate: 0.12.1-1ubuntu1
  Version table:
 *** 0.12.1-1ubuntu1 0
        500 http://ca.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

description: updated
description: updated
Changed in alacarte (Ubuntu):
importance: Undecided → Low
Revision history for this message
Mike (mnorwood154-gmail) wrote :

Same problem here as well.

Revision history for this message
Aristotelis Mikropoulos (amikrop) wrote :

confirmed here, too

Revision history for this message
Marc Gariépy (mgariepy) wrote :

The problem is not in alacarte, by using gmenu-simple-editor you have the same behavior.

Revision history for this message
Marc Gariépy (mgariepy) wrote :

The bug is in the DefaultLayout option of the Games menu.

Changed in alacarte (Ubuntu):
status: New → Invalid
status: Invalid → New
affects: alacarte (Ubuntu) → gnome-menus (Ubuntu)
Revision history for this message
Marc Gariépy (mgariepy) wrote :

The problem is caused by :
...
    <DefaultLayout inline="true" inline_limit="6" inline_header="false">
      <Merge type="menus"/>
      <Merge type="files"/>
    </DefaultLayout>
...

in /etc/xdg/menus/applications.menu

When the limit of 6 items is not reached for sub-menu, the menu doesn't create a sub-menu in the Games menu, it includes items directly under the Games menu.

gmenu-simple-editor create an applications.menu that exclude a games in Games but it should create the file to remove from the Cards sub-menu since the item is part of this submenu.

Maybe a new flag should be added to python-gmenu to show real path without the DefaultLayout conditions.

Changed in gnome-menus:
importance: Unknown → Low
status: Unknown → New
Changed in gnome-menus (Ubuntu):
status: New → Triaged
Revision history for this message
Mark Stosberg (markstos) wrote :

I confirmed the 4 lines mentioned above are related to the problem of hiding items in the games menu. I was able to workaround the issue by removing the 4 lines in question from the mentioned file:

    sudo cp /etc/xdg/menus/applications.menu /etc/xdg/menus/applications.menu.bak
    sudo sensible-editor /etc/xdg/menus/applications.menu

That caused lots of sub-menus to Games to appear, but at least hiding games started working.

   Mark

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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