You are not logged in.

#1 2005-04-24 00:18:28

KENTOSI
Member
From: Sydney, Australia
Registered: 2005-02-27
Posts: 69
Website

Anyone got menu-editor to work for Gnome 2.10?

I downloaded menu-editor from http://dev.realistanew.com/menu-editor/
and expanded it to /usr/local/src

next I attempted to run ./bin/menu-editor and I get:

Traceback (most recent call last):
  File "./bin/menu-editor", line 29, in ?
    from menu_handler import MenuHandler
  File "./lib/menu-editor/menu_handler.py", line 25, in ?
    import xdg.Menu, xdg.DesktopEntry
ImportError: No module named xdg.Menu

What is this xdg application? I can't seem to find it in pacman.

I hate not being able to edit my menus, and the default ArchLinux installation of gnome installs apps like "NmapFE" which (I don't use, and) have no icons.

Anyone else attempted to install this application?  The guy who wrote it has a website here:
http://www.realistanew.com/2005/03/18/g … nu-editor/


~gautam

Offline

#2 2005-04-24 00:43:07

KENTOSI
Member
From: Sydney, Australia
Registered: 2005-02-27
Posts: 69
Website

Re: Anyone got menu-editor to work for Gnome 2.10?

Ok I found out the issue.

If anyone else wants to try this application here's the installation process:
1. extract menueditor_0.4.3.orig.tar.gz (I extracted it into /usr/local/src)
2. go to the extracted dir.
3. open up lib/menu-editor/menu_handler.py in gedit
4. Replace the line containing:

<MergeFile>/etc/xdg/menus/applications.menu</MergeFile>

with:

<MergeFile>/opt/gnome/etc/xdg/menus/applications.menu</MergeFile>

5. log in as root and run:

python ./setup.py install

from the main extracted directory of the package.

Now simply log in as yourself and run menu-editor!!!

(If you have a ~/.config directory I suggest you remove it first before running this)


~gautam

Offline

#3 2005-04-24 00:45:48

KENTOSI
Member
From: Sydney, Australia
Registered: 2005-02-27
Posts: 69
Website

Re: Anyone got menu-editor to work for Gnome 2.10?

Oh, and before I found out about the above I also did:

pacman -Sy gnome-python-extras

and installed pyxdg-0.9 form
http://freedesktop.org/Software/pyxdg
from source, as part of the "solution finding" process big_smile


... but enough of my rant!


~gautam

Offline

#4 2005-04-24 00:51:30

aCoder
Member
From: Medina, OH
Registered: 2004-03-07
Posts: 359
Website

Re: Anyone got menu-editor to work for Gnome 2.10?

pyxdg is also in staging, if you want the pkg.


If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
  - John Cage

Offline

#5 2005-04-24 05:40:05

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: Anyone got menu-editor to work for Gnome 2.10?

while pyxdg is on staging, as reported on menueditor homepage, it has some issues.  I made the PKGBUILD for both pyxdg 0.9 and menu-editor but haven't uploaded to AUR to the policy of not uploading anything already on TUR.  Anyway here are the PKGBUILDS.

pyxdg 0.9

# Contributor: Mario A. Vazquez <mario_vazq@hotmail.com>
pkgname=pyxdg
pkgver=0.9
pkgrel=1
pkgdesc="Python library to access freedesktop.org standards"
url="http://freedesktop.org/Software/pyxdg"
license=""
depends=('python>=2.4')
makedepends=('sed')
conflicts=()
replaces=('python-xdg')
backup=()
install=
source=(http://www.freedesktop.org/~lanius/$pkgname-$pkgver.tar.gz)
md5sums=('b05f9f5e2e43fa207804ad56e0df62d0')

build() {
  cd $startdir/src/$pkgname-$pkgver
 # fix python path
  sed -i "s:/usr/bim/env python:/usr/bin/python:" setup.py
  chmod +x setup.py
  ./setup.py install --root=$startdir/pkg
}

menueditor 0.4.3

# Contributor: Mario A. Vazquez <mario_vazq@hotmail.com>
pkgname=menueditor
pkgver=0.4.3
pkgrel=1
pkgdesc="Gnome menu editor writen in Python and Pyxdg/Pygtk"
url="http://dev.realistanew.com/menu-editor/"
license=""
depends=('python' 'pyxdg' 'pygtk')
makedepends=('sed')
conflicts=()
replaces=()
backup=()
install=
ource=(http://dev.realistanew.com/menu-editor/${pkgname}_$pkgver.orig.tar.gz)
md5sums=('a25e6749a76e806f6eb19ece02b90281')

build() {
  cd $startdir/src/$pkgname

 #fix icon path on menueditor.desktop and gnome path on python script
  sed -i "s:menu-editor.png:/usr/share/pixmaps/menu-editor.png:" menueditor.desktop
  sed -i "s:/etc/xdg/menus/applications.menu:/opt/gnome/etc/xdg/menus/applications.menu:" lib/menu-editor/menu_handler.py

  chmod +x setup.py
 ./setup.py install --root=$startdir/pkg
}

Offline

#6 2005-04-29 04:38:24

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: Anyone got menu-editor to work for Gnome 2.10?

Had to give you a warning notice.  While menueditor works for me, and was able to add and remove menu entries, it has an issue with KDE.  Both KDE and Gnome use xdg menu entries, but they stored the values on different places.  Menueditor since it's a gnome app, only make reference to Gnome menu entries, which will cause KDE menus to behave erratically (no icons, missing entries) when login on KDE.  For that reason I only recommend menueditor to single desktop gnome users.

That´s maybe the reason for the Unified menus on most distributions.  Probably they saw that comming. sad

Offline

#7 2005-05-02 13:26:46

corky
Member
From: Norway
Registered: 2004-12-17
Posts: 76

Re: Anyone got menu-editor to work for Gnome 2.10?

darkcoder wrote:

Had to give you a warning notice.  While menueditor works for me, and was able to add and remove menu entries, it has an issue with KDE.  Both KDE and Gnome use xdg menu entries, but they stored the values on different places.  Menueditor since it's a gnome app, only make reference to Gnome menu entries, which will cause KDE menus to behave erratically (no icons, missing entries) when login on KDE.  For that reason I only recommend menueditor to single desktop gnome users.

That´s maybe the reason for the Unified menus on most distributions.  Probably they saw that comming. sad

Another warning is when I either changed an icon or a category of an app already on the menu, its given me duplicates, and in once case triplicates of the same entry (basically fux0ring my gnome menu, as it wont delete them)  :evil:


mov ah, 0
int 16h

Offline

#8 2005-05-03 21:28:27

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: Anyone got menu-editor to work for Gnome 2.10?

I haven't got duplicate issues, but the problem with KDE menus was documented.  Also saw the problem discussed in Gentoo forums.

Offline

#9 2005-05-04 15:43:08

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: Anyone got menu-editor to work for Gnome 2.10?

There is a new version and is now posted on aur site.  With the new version comes a new streamline interface and a new name.  Search for smeg and try it.  Also check pyxdg that was updated to 0.10.

Offline

#10 2005-05-04 15:46:26

darkcoder
Member
From: A bar near you
Registered: 2004-09-10
Posts: 310

Re: Anyone got menu-editor to work for Gnome 2.10?

smeg pkgbuild  Previous versions known as menu-editor

# Contributor: Mario A. Vazquez <mario_vazq@hotmail.com>
pkgname=smeg
pkgver=0.5
pkgrel=1
pkgdesc="Simple Menu Editor for Gnome (known as menueditor)"
url="http://www.realistanew.com/projects/smeg/"
license=""
depends=('python' 'pyxdg>=0.9' 'pygtk')
makedepends=('sed')
conflicts=()
replaces=('menueditor')
backup=()
install=
source=(http://dev.realistanew.com/smeg/latest/$pkgname.tar.gz)
md5sums=('4f92c6d86714e10ff40ce95df2fab301')

build() {
  cd $startdir/src/$pkgname-$pkgver

 #fix icon path on menueditor.desktop and gnome path on python script
  sed -i 's:smeg.png:/usr/share/pixmaps/smeg.png:' smeg.desktop
  sed -i 's:<MergeFile>""" + self.root_config:<MergeFile type="parent">""" + self.root_config:' lib/smeg/menu_handler.py

  chmod +x setup.py
 ./setup.py install --root=$startdir/pkg
}

Offline

Board footer

Powered by FluxBB