I have improved the patch. Instead of being stuck between XFCE and Others - it now checks whether the desktop environment is LXDE as well.
if os.getenv("XDG_CURRENT_DESKTOP") == "XFCE": process = subprocess.Popen(['exo-desktop-item-edit', file_path], env=os.environ)
elif os.getenv("XDG_CURRENT_DESKTOP") == "LXDE": process = subprocess.Popen(['exo-desktop-item-edit', file_path], env=os.environ)
else: process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ) GObject.timeout_add(100, self.waitForNewMenuProcess, process, parent.get_menu_id(), file_path)
It has been applied to
1. New Item
2. New Menu Item
3. Edit Properties
Same instructions, make a backup of /usr/share/alacarte/Alacarte/MainWindow.py and then replace it with the patch.
I have improved the patch. Instead of being stuck between XFCE and Others - it now checks whether the desktop environment is LXDE as well.
if os.getenv( "XDG_CURRENT_ DESKTOP" ) == "XFCE":
process = subprocess. Popen([ 'exo-desktop- item-edit' , file_path], env=os.environ) "XDG_CURRENT_ DESKTOP" ) == "LXDE":
process = subprocess. Popen([ 'exo-desktop- item-edit' , file_path], env=os.environ)
process = subprocess. Popen([ 'gnome- desktop- item-edit' , file_path], env=os.environ)
GObject. timeout_ add(100, self.waitForNew MenuProcess, process, parent. get_menu_ id(), file_path)
elif os.getenv(
else:
It has been applied to
1. New Item alacarte/ Alacarte/ MainWindow. py and then replace it with the patch.
2. New Menu Item
3. Edit Properties
Same instructions, make a backup of /usr/share/