FileNotFoundError: [Errno 2] No such file or directory: '$HOME/.config/menus/applications-merged'

Bug #1722753 reported by Bill Yikes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MenuLibre
Fix Released
Undecided
Sean Davis

Bug Description

I have menu items in the wrong categories. The only apparent way to correct this is to tediously click the up ("^") and down ("v") arrows many times to move the item. When I move it all the way down to the last position of the category, I click down ("v") again which has the bizarre effect of creating an apparent clone of the item. But the copy that remains in the original category is actually just a ghost! That is, when menulibre is restarted, the item is no longer in the original category. And worse, the cursor stays on the ghost instance, so hitting the down arrow generates a new copy each time, and the cursor stays on the ghost. The terminal that menulibre was launched from shows:

(menulibre:5077): Gtk-WARNING **: Allocating size to menulibre+MenulibreApplication+MenulibreWindow 0x55e91a5a82b0 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate?
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 2046, in move_iter
    relative_position)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 2105, in move_iter_up_level
    self.xdg_menu_uninstall(model, treeiter, filename)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 2408, in xdg_menu_uninstall
    MenulibreXdg.desktop_menu_uninstall(parents, [filename])
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreXdg.py", line 209, in desktop_menu_uninstall
    for filename in os.listdir(merged_dir):
FileNotFoundError: [Errno 2] No such file or directory: '$HOME/.config/menus/applications-merged'

Note it's not an issue when moving up ("^").. just down.

Bill Yikes (yik3s)
description: updated
Revision history for this message
Sean Davis (bluesabre) wrote :

This issue should be resolved with the below commit. The up and down arrows are now disabled when items can be moved no further up or down.

http://bazaar.launchpad.net/~menulibre-dev/menulibre/master/revision/457

Changed in menulibre:
status: New → Fix Committed
Sean Davis (bluesabre)
Changed in menulibre:
milestone: none → 2.1.4
assignee: nobody → Sean Davis (bluesabre)
Sean Davis (bluesabre)
Changed in menulibre:
status: Fix Committed → 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.