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.

** Attachment added: "Improved Patch of MainWindow.py"
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3461121/+files/MainWindow.py

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1089438

Title:
  alacarte menu editor: new item, new menu bug

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to