You are not logged in.

#1 2007-04-05 14:26:19

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Discuss WM applications menu autogeneration

Hi, All!

I want to start discussion about menu hierarchy for window managers and
it's autogeneration from .desktop files.

So I create wiki page

http://wiki.archlinux.org/index.php/WM_Menu_hierarchy

Feel free to edit and discuss...

Offline

#2 2007-04-05 14:28:37

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Discuss WM applications menu autogeneration

I want to implement it after discussion if ready-to-use solution will not be found.

Offline

#3 2007-04-05 15:02:44

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Discuss WM applications menu autogeneration

Surely this should be based on the freedesktop catergories?  Or is it already?

Offline

#4 2007-04-05 15:16:59

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Discuss WM applications menu autogeneration

Yes, I'm going to use Categories from .desktop file. I'm not sure how, but I hope to find some solution to map Categories to menu tree item. This is subject to discuss too.

Offline

#5 2007-04-05 15:19:43

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: Discuss WM applications menu autogeneration

What's the use of the .desktop files?

Coming from Debian I was used to having the menus (was using Fluxbox at the time) updated whenever I installed/remove anything.. however after moving to Arch Linux and switching to Openbox I've managed my menus manually and I prefer to keep it that way. Hence I would like it to be an optional thing.


PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

#6 2007-04-05 15:25:06

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Discuss WM applications menu autogeneration

...or it should be separated submenu with autogenerated items.

Btw - freedesktop standard - http://standards.freedesktop.org/menu-s … atest.html

Offline

#7 2007-04-05 15:36:33

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Discuss WM applications menu autogeneration

[vEX] wrote:

What's the use of the .desktop files?

It provides info about icon, localized application name, etc. Should be used by different DEs.

Offline

#8 2007-04-09 14:00:26

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Discuss WM applications menu autogeneration

I finished my research.

gnome and kde are xdg compatible. So they picks up .desktop files
automaticaly.

TODO:

- make common xdg configuration in /etc/xdg/menu and
  /usr/share/desktop-directories. (gnome/kde have own)
- write parser for xdg XML (perl) to simplify output format
- write few WM methods which take parsed output from xdg parser and make
  menu items.

Output format from xdg parser:

  path/to/application1/in/menu
  icon-name1.png
  command to run app1
  long application1 description
  path/to/application2/in/menu
  icon-name2.png
  command to run app2
  long application2 description

4 lines per menu item.

Suggestions?

Offline

#9 2007-04-09 15:11:12

sergej
Package Maintainer (PM)
From: Russia, Voronezh
Registered: 2006-03-21
Posts: 69

Re: Discuss WM applications menu autogeneration

I put xdg-menu package into AUR

http://aur.archlinux.org/packages.php?d … 1&ID=10286

and create a wiki page

http://wiki.archlinux.org/index.php/XdgMenu

Please test it and give me feedback.

Offline

Board footer

Powered by FluxBB