[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
I have found the solution after a bit of digging around.
For some reason, it is considering itself something other than 
XDG_CURRENT_DESKTOP - hence trying to invoke gnome-desktop-item-edit.
However, it is a command related to gnome-panel. So I changed the command to 
exo-desktop-item-edit like this:

if os.getenv(XDG_CURRENT_DESKTOP) == XFCE:
process = subprocess.Popen(['exo-desktop-item-edit', file_path], 
env=os.environ)
else:
process = subprocess.Popen(['exo-desktop-item-edit', file_path], 
env=os.environ)
GObject.timeout_add(100, self.waitForNewMenuProcess, process, 
parent.get_menu_id(), file_path)

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.

** Attachment added: Patched MainWindow.py file for Alacarte.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460911/+files/MainWindow.py

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
Here is the patched version


** Patch removed: Patched MainWindow.py file for Alacarte.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460911/+files/MainWindow.py

** Attachment added: Patch of MainWindow.py file for alacarte fix in Lubuntu.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460912/+files/MainWindow.py

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
I have attached the patched version of MainWindow.py file. You can
directly use it to replace your existing MainWindow.py file. Of course,
keep proper backup of your old file before replacing - in case things go
wrong.

** Attachment added: Patched MainWindow.py file for Alacarte.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460913/+files/MainWindow.py

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
I have attached the patched version of MainWindow.py file. You can
directly use it to replace your existing MainWindow.py file. Of course,
keep proper backup of your old file before replacing - in case things go
wrong.

** Attachment added: Patched MainWindow.py file for Alacarte.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460914/+files/MainWindow.py

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
** Patch removed: Patch of MainWindow.py file for alacarte fix in Lubuntu.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460912/+files/MainWindow.py

** Patch removed: Patched MainWindow.py file for Alacarte.
   
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438/+attachment/3460913/+files/MainWindow.py

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
Looks like editing property also does not work properly for similar reasons. 
The fix is similar. In the function
on_edit_properties_activate
Change the gnome-desktop-item-edit to exo-desktop-item-edit

Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 1089438] Re: alacarte menu editor: new item, new menu bug

2012-12-15 Thread lordamit
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
Desktop Bugs, which is subscribed to alacarte in 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

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


[Bug 656735] Re: alacarte needs to depend on gnome-panel

2012-12-15 Thread lordamit
Hi all,i n case this problem persists - try the patch here.

https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/1089438

This is applicable for XFCE, LXDE.

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

Title:
  alacarte needs to depend on gnome-panel

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

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


[Bug 1089438] [NEW] alacarte menu editor: new item, new menu bug

2012-12-12 Thread lordamit
Public bug reported:

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/alacarte/Alacarte/MainWindow.py, line 267, in 
on_new_menu_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 1259, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

For new item

Traceback (most recent call last):
  File /usr/share/alacarte/Alacarte/MainWindow.py, line 283, 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 1259, in _execute_child
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
ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
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
PackageArchitecture: all
SourcePackage: alacarte
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: alacarte (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug quantal

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to alacarte in 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

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