Confirmed on 11.10

Here's the gist:
user@comp:~/.local/share/applications$ alacarte 
* pressed New Item *
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in 
on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], 
env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
^CTraceback (most recent call last):
  File "/usr/bin/alacarte", line 37, in <module>
    main()
  File "/usr/bin/alacarte", line 34, in main
    app.run()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 76, in run
    gtk.main()
KeyboardInterrupt
user@comp:~/.local/share/applications$ sudo alacarte 
[sudo] password for user: 
* pressed New Item *
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in 
on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], 
env=os.environ)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
user@comp:~/.local/share/applications$ sudo apt-get install gnome-panelReading 
package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gir1.2-panelapplet-4.0 gnome-applets gnome-session-fallback
  libpanel-applet-4-0
Suggested packages:
  gnome-netstatus-applet deskbar-applet cpufrequtils epiphany-browser
  desktop-base
The following NEW packages will be installed:
  gir1.2-panelapplet-4.0 gnome-applets gnome-panel gnome-session-fallback
  libpanel-applet-4-0
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 701 kB of archives.
After this operation, 2,765 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe 
libpanel-applet-4-0 i386 1:3.2.0-0ubuntu1 [93.2 kB]
Get:2 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe 
gir1.2-panelapplet-4.0 i386 1:3.2.0-0ubuntu1 [5,004 B]
Get:3 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe gnome-panel i386 
1:3.2.0-0ubuntu1 [422 kB]
Get:4 http://mirror.isoc.org.il/pub/ubuntu/ oneiric/universe gnome-applets i386 
3.2.0-0ubuntu1 [175 kB]
Get:5 http://mirror.isoc.org.il/pub/ubuntu/ oneiric-updates/universe 
gnome-session-fallback all 3.2.1-0ubuntu1.1 [5,028 B]
Fetched 701 kB in 2s (275 kB/s)              
Selecting previously deselected package libpanel-applet-4-0.
(Reading database ... 738169 files and directories currently installed.)
Unpacking libpanel-applet-4-0 (from 
.../libpanel-applet-4-0_1%3a3.2.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package gir1.2-panelapplet-4.0.
Unpacking gir1.2-panelapplet-4.0 (from 
.../gir1.2-panelapplet-4.0_1%3a3.2.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package gnome-panel.
Unpacking gnome-panel (from .../gnome-panel_1%3a3.2.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package gnome-applets.
Unpacking gnome-applets (from .../gnome-applets_3.2.0-0ubuntu1_i386.deb) ...
Selecting previously deselected package gnome-session-fallback.
Unpacking gnome-session-fallback (from 
.../gnome-session-fallback_3.2.1-0ubuntu1.1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for gconf2 ...
Setting up libpanel-applet-4-0 (1:3.2.0-0ubuntu1) ...
Setting up gir1.2-panelapplet-4.0 (1:3.2.0-0ubuntu1) ...
Setting up gnome-panel (1:3.2.0-0ubuntu1) ...
Setting up gnome-applets (3.2.0-0ubuntu1) ...
Setting up gnome-session-fallback (3.2.1-0ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
user@comp:~/.local/share/applications$ alacarte 
* pressed New Item *

... and then it works!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to alacarte in Ubuntu.
https://bugs.launchpad.net/bugs/826049

Title:
  Dependency problem: alacarte crashes on 'New Item' with OSError
  because gnome-desktop-item-edit not found

Status in Alacarte Menu Editor:
  New
Status in “alacarte” package in Ubuntu:
  Triaged

Bug description:
  alacarte calls /usr/bin/gnome-desktop-item-edit in a subprocess in
  order to install new menu items. However, /usr/bin/gnome-desktop-item-
  edit is in the gnome-panel package, which is only a Recommends: for
  the alacarte package rather than marked as a true dependency. People
  who have not installed gnome-panel will thus not be able to use core
  Alacarte functionality.

  Symptoms:
  If you run alacarte from the command line, you will see an error like this 
when you click on "New Item":
    File "/usr/share/alacarte/Alacarte/MainWindow.py", line 311, in 
on_new_item_button_clicked
      process = subprocess.Popen(['gnome-desktop-item-edit', file_path], 
env=os.environ)
    File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
      errread, errwrite)
    File "/usr/lib/python2.7/subprocess.py", line 1239, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory

  If you run alacarte from a menu, you will simply find that when you
  click "New Item" nothing happens: no dialog box for the item appears.

  Workaround: install gnome-panel through your package manager

  Fix: three possibilities:
  (1) alacarte should depend on gnome-panel
  (2) gnome-desktop-item-edit program should be in the alacarte package
  (3) gnome-desktop-item-edit program should be in some third package, on which 
alacarte should in turn depend

  Original description:

  Crashed while trying to make a new item in main menu and would not
  create new item.

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: alacarte 0.13.2-2ubuntu3
  ProcVersionSignature: Ubuntu 3.0.0-8.10-generic 3.0.1
  Uname: Linux 3.0.0-8-generic x86_64
  Architecture: amd64
  Date: Sun Aug 14 00:15:20 2011
  ExecutablePath: /usr/bin/alacarte
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
  ProcEnviron:
   LANGUAGE=en_GB:en
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/alacarte']
  SourcePackage: alacarte
  Title: alacarte crashed with OSError in _execute_child(): [Errno 2] No such 
file or directory
  UpgradeStatus: Upgraded to oneiric on 2011-08-12 (0 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/alacarte/+bug/826049/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to