Ticket #12 (accepted enhancement)

Opened 2 years ago

Last modified 15 months ago

Request: Menu Generatring Tool

Reported by: GeneratriX Owned by: emasson
Priority: minor Milestone: DR5
Component: classic desktop Version:
Keywords: entries, generator, menu, toolchest Cc:

Description

Have you thought about some kind of compatibility between the MaXX's Toolchest and any of the menu generators availables for Linux?

Think about it: just some kind of GNOME'ish / KDE'ish menu generating tool based on the Linux installation underneath.

Thanks in advance for your excellent work!
All the best!
Diego

Attachments

build-toolchest-menus.py Download (11.6 KB) - added by joeb1002 15 months ago.
Python Script to Build system.chestrc for MaXX Desktop Toolchest

Change History

  Changed 2 years ago by GeneratriX

  • cc webmaster@… added

  Changed 2 years ago by GeneratriX

  • cc webmaster@… removed

  Changed 2 years ago by emasson

  • status changed from new to accepted
  • component changed from 5Dwm v2.0 to classic desktop
  • milestone set to DR5

follow-up: ↓ 5   Changed 15 months ago by joeb1002

If it helps, I've written a Python script to generate the system.chestrc file based on the output from xdg_menu. I could clean the code up a little and add some needed comments if you're interested.

in reply to: ↑ 4   Changed 15 months ago by GeneratriX

Replying to joeb1002:

If it helps, I've written a Python script to generate the system.chestrc file based on the output from xdg_menu. I could clean the code up a little and add some needed comments if you're interested.

Wonderful, I'll be pleased to try it if you want!
...of course I would be interested, but please, no need to hurry up too much. But if want, I'll be glad to test it. Just let me know how to download/proceed with it. All the best,
Diego

follow-ups: ↓ 7 ↓ 8   Changed 15 months ago by joeb1002

Attached is the python script. If you have python2.6 and xdg_menu installed, it should execute without issue. The output file is written to /tmp/system.chestrc.
Enjoy,
Joe

in reply to: ↑ 6   Changed 15 months ago by GeneratriX

Replying to joeb1002:

Attached is the python script. If you have python2.6 and xdg_menu installed, it should execute without issue. The output file is written to /tmp/system.chestrc.
Enjoy,
Joe

Excellent!, I'll try it and then I'll report my findings. Thanks in advance!

in reply to: ↑ 6   Changed 15 months ago by GeneratriX

Replying to joeb1002:

Attached is the python script. If you have python2.6 and xdg_menu installed, it should execute without issue. The output file is written to /tmp/system.chestrc.
Enjoy,
Joe

Well, I'm actually using Ubuntu 10.04 (Lucid) AMD64, and I could not find an 'xdg_menu' package yet... what I actually have is a 'menu-xdg' Version 0.5, but I don't know if this is the same thing... the fact is, if I install this one, it is not working "as is" anyway, let's see:

----------------------------------------------------------
sudo ./build-toolchest-menus.py

/bin/sh: /usr/bin/xdg_menu: not found
Traceback (most recent call last):

File "./build-toolchest-menus.py", line 370, in <module>

get_XML_doc()

File "./build-toolchest-menus.py", line 47, in get_XML_doc

xmldoc = XML2obj(rawXML)

File "./build-toolchest-menus.py", line 364, in XML2obj

xml.sax.parseString(src, builder)

File "/usr/lib/python2.6/xml/sax/init.py", line 49, in parseString

parser.parse(inpsrc)

File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse

xmlreader.IncrementalParser?.parse(self, source)

File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 125, in parse

self.close()

File "/usr/lib/python2.6/xml/sax/expatreader.py", line 217, in close

self.feed("", isFinal = 1)

File "/usr/lib/python2.6/xml/sax/expatreader.py", line 211, in feed

self._err_handler.fatalError(exc)

File "/usr/lib/python2.6/xml/sax/handler.py", line 38, in fatalError

raise exception

xml.sax._exceptions.SAXParseException: <unknown>:1:0: no element found

----------------------------------------------------------

I don't know if we talk about the same package, or I'm mistaking the things here.
Could you point me to the intended 'xdg_menu' package so I can download and/or build it? Thanks!

Sorry, I'm not actually too familiarized with the desktop packages.
All the best,
Diego

follow-up: ↓ 10   Changed 15 months ago by joeb1002

I run openSUSE but I'm a sort familiar with Debian. I think the package you're looking for is menu-xdg. See this page:
 http://packages.ubuntu.com/maverick/menu-xdg

The XDG functionality is from freedesktop.org and both KDE and Gnome support the format.

You might also want to look at xdg-utils. See this page for that:
 http://packages.ubuntu.com/hardy/xdg-utils

For the error message above, the sax parser is not seeing any XML content which I would consider a bug (oops). I'll fix the script to make sure there is XML content before processing and repost.

Changed 15 months ago by joeb1002

Python Script to Build system.chestrc for MaXX Desktop Toolchest

in reply to: ↑ 9   Changed 15 months ago by GeneratriX

Replying to joeb1002:

I run openSUSE but I'm a sort familiar with Debian. I think the package you're looking for is menu-xdg. See this page:
 http://packages.ubuntu.com/maverick/menu-xdg

The XDG functionality is from freedesktop.org and both KDE and Gnome support the format.

You might also want to look at xdg-utils. See this page for that:
 http://packages.ubuntu.com/hardy/xdg-utils

For the error message above, the sax parser is not seeing any XML content which I would consider a bug (oops). I'll fix the script to make sure there is XML content before processing and repost.

No problem!, take your time. I'll be here, ready to try it when you think it is done.
I'll check for the 'xdg' packages soon.
Greetings!
Diego

Note: See TracTickets for help on using tickets.