Alacarte doesn't run as normal user[Dapper]

Bug #6555 reported by Johan Van Hellemont
8
Affects Status Importance Assigned to Milestone
alacarte (Ubuntu)
Confirmed
Low
Ubuntu GNOME

Bug Description

When I start alacarte from the menu nothing happens,from the terminal I get this:

johan@dapper:~$ alacarte
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 26, in ?
    main()
  File "/usr/bin/alacarte", line 23, in main
    GnomeFront()
  File "/usr/lib/python2.4/site-packages/Alacarte/GnomeFront.py", line 69, in __init__
    self.dialogs = DialogHandler(self.tree, self.icon)
  File "/usr/lib/python2.4/site-packages/Alacarte/GnomeDialogHandler.py", line 41, in __init__
    for name in os.listdir(path):
OSError: [Errno 13] Permission denied: '/usr/local/bin'

When I run sudo alacarte the program starts normally.
Alacarte 0.8-0ubuntu2
Up2date dapper (08-01)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. Could you run "ls -ld /usr/local/bin" and copy that to a comment?

Changed in alacarte:
assignee: nobody → gnome
status: New → Accepted
Revision history for this message
Johan Van Hellemont (johan-van-hellemont) wrote :

johan@dapper:~$ ls -ld /usr/local/bin
drwx------ 2 root root 4096 2006-01-07 08:28 /usr/local/bin

Revision history for this message
Suzan (suzan72) wrote :

Same here! (Dapper Flight 3 live-CD). Cannot start Alacarte as normal user.

If I run
ls -ld /usr/local/bin

I get
drwxr-xr-x 4 root root 0 2006-01-13 12:50 /usr/local/bin

Revision history for this message
Suzan (suzan72) wrote :

I forgot to mention that I can't run Alacarte with sudo either. Same error.

Revision history for this message
Johan Van Hellemont (johan-van-hellemont) wrote :

Just installed Flight 3 with today's updates and Alacarte works now as normal user.

ls -ld /usr/local/bin
drwxr-xr-x 2 root root 4096 2006-01-16 21:15 /usr/local/bin

Revision history for this message
Daniel Holbach (dholbach) wrote :

Suzan, what about you? Does it work for you too?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Daniel, the bug is easy to get: sudo chmod 600 /usr/local/bin

Revision history for this message
Wouter den Haan (wouterdenhaan) wrote :

I can confirm this bug. It seems to crash as soon as an icon is not user-accessible.

wouter@ubuntu:~$ alacarte
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 26, in ?
    main()
  File "/usr/bin/alacarte", line 23, in main
    GnomeFront()
  File "/usr/lib/python2.4/site-packages/Alacarte/GnomeFront.py", line 72, in __ init__
    self.loadMenus()
  File "/usr/lib/python2.4/site-packages/Alacarte/GnomeFront.py", line 201, in l oadMenus
    self.app_handler = MenuHandler('applications.menu', self.options)
  File "/usr/lib/python2.4/site-packages/Alacarte/PyXDGMenuHandler.py", line 27, in __init__
    xdg.MenuEditor.MenuEditor.__init__(
  File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 28, in __init_ _
    self.parse(menu, filename, root)
  File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 40, in parse
    self.menu = parse(menu)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 524, in parse
    __genmenuNotOnlyAllocated(tmp["Root"])
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 856, in __genmenuNot OnlyAllocated
    __genmenuNotOnlyAllocated(submenu)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 859, in __genmenuNot OnlyAllocated
    tmp["cache"].addMenuEntries(menu.AppDirs)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1022, in addMenuEntr ies
    self.__addFiles(dir, "", prefix, legacy)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1036, in __addFiles
    self.__addFiles(dir, os.path.join(subdir,item), prefix, legacy)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1036, in __addFiles
    self.__addFiles(dir, os.path.join(subdir,item), prefix, legacy)
  File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 1025, in __addFiles
    for item in os.listdir(os.path.join(dir,subdir)):
OSError: [Errno 13] Permission denied: '/usr/share/applications/dvdshrink/32x32'

Revision history for this message
David Mills (d-mills) wrote :

OK, I'm adding an occurance of this bug in Dapper flight 5, du to permission problems on:
/sbin
/home/ubuntu
/home/ubuntu/.config/menues/settings.menu

once corrected alacarte runs

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs which you find.

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.