Error with unreadable menu entries

Bug #1220035 reported by jhansonxi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MenuLibre
Fix Released
High
Unassigned

Bug Description

Ubuntu 12.04 (Precise Pangolin) x86_64/amd64
menulibre 13.04.15

Error with a *.desktop file that is not readable by the current user:

Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/menulibre/bin/menulibre", line 49, in <module>
    menulibre.main()
  File "/opt/extras.ubuntu.com/menulibre/menulibre/__init__.py", line 44, in main
    window = MenulibreWindow.MenulibreWindow()
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/Window.py", line 48, in __new__
    new_object.finish_initializing(builder)
  File "/opt/extras.ubuntu.com/menulibre/menulibre/MenulibreWindow.py", line 83, in finish_initializing
    self.apps = MenulibreXdg.get_applications()
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/MenulibreXdg.py", line 210, in get_applications
    applications[filename] = Application(os.path.join(root, filename))
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/MenulibreXdg.py", line 175, in __init__
    MenulibreDesktopEntry.__init__(self, filename)
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/MenulibreXdg.py", line 38, in __init__
    self.load_properties(filename)
  File "/opt/extras.ubuntu.com/menulibre/menulibre_lib/MenulibreXdg.py", line 76, in load_properties
    input_file = open(filename)
IOError: [Errno 13] Permission denied: '/usr/local/share/applications/system-config-samba.desktop'

ll /usr/local/share/applications/system-config-samba.desktop
-rw-r----- 1 root sudo 5843 May 25 19:57 /usr/local/share/applications/system-config-samba.desktop

Current user is not in sudo group. Permissions are set to suppress menu entries unusable by current user.

Revision history for this message
Sean Davis (bluesabre) wrote :

Please test if this has been resolved in MenuLibre 2.0

Revision history for this message
Sean Davis (bluesabre) wrote :

Marking as fixed since there have been no additional reports. Please reopen if this is still an issue.

Changed in menulibre:
status: New → Fix Released
milestone: none → 2.0.1
importance: Undecided → High
Revision history for this message
jhansonxi (jhansonxi) wrote :

Seems to be fixed in 2.0.3 in Xubuntu 14.04 (Trusty Tahr).

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.