alacarte menu editor: new item, new menu bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alacarte (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have installed alacarte in Lubuntu 12.10
After installing, I noticed that it does not work properly, that is - can not be used properly to insert new item, new menu etc.
I opened it using terminal and found the following trace when tried to add new menu:
Traceback (most recent call last):
File "/usr/share/
process = subprocess.
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
For new item
Traceback (most recent call last):
File "/usr/share/
process = subprocess.
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
Output of lsb_release -rd
Description: Ubuntu 12.10
Release: 12.10
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: alacarte 3.5.5-0ubuntu1.1
ProcVersionSign
Uname: Linux 3.5.0-19-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Wed Dec 12 21:29:24 2012
InstallationDate: Installed on 2012-12-08 (3 days ago)
InstallationMedia: Lubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.1)
MarkForUpload: True
PackageArchitec
SourcePackage: alacarte
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in alacarte (Ubuntu): | |
status: | Confirmed → Invalid |
I have found the solution after a bit of digging around. item-edit. item-edit like this:
For some reason, it is considering itself something other than XDG_CURRENT_DESKTOP - hence trying to invoke gnome-desktop-
However, it is a command related to gnome-panel. So I changed the command to exo-desktop-
if os.getenv( "XDG_CURRENT_ DESKTOP" ) == "XFCE": Popen([ 'exo-desktop- item-edit' , file_path], env=os.environ) Popen([ 'exo-desktop- item-edit' , file_path], env=os.environ)
GObject. timeout_ add(100, self.waitForNew MenuProcess, process, parent. get_menu_ id(), file_path)
process = subprocess.
else:
process = subprocess.
This is to be done for both new menu and new item function. The file is at
/usr/share/ alacarte/ Alacarte/ MainWindow. py
And everything started working in alacarte. I have also attached the changed MainWindow.py file as a patch with this post.
Thank you.