The officially official Devuan Forum!

You are not logged in.

#1 2019-11-07 10:24:19

omnio
Member
Registered: 2019-07-12
Posts: 12  

Question about XDG menus

Hello folks,

I've been questioning #debian these days with this matter but since I got no answer I thought I should ask here too.

I am looking for a solution to have the menus in icewm and windowmaker show the same apps the "modern" DEs show (XFCE, LXQT, ...). The menus in icewm and windowmaker look very strange, some (many) apps are missing, instead there are useless items like xclock, xeyes, ...

This is what I found out so far:
- there are two "standards", the old one is using the entries in /usr/share/menu
- the new standard (or the XDG one) is using the entries in /usr/share/applications

What I tried:
- I installed menu and menu-xdg
- I ran update-menus

But the menus look just like before. The thing is, I don't need at all the old standard, I just want the XDG one. I don't need to see in the menu xclock and xeyes, I don't use them anyway smile

And now a little rant: on my laptop I use Mageia, it's a very nice distro, too bad that systemd ruins it. Windowmaker and icewm look wonderful there, the menus are "XDG-only", but I can't figure out how they did it. They don't even have a /usr/share/menu directory!

Hopefully someone will have a clue about this. Thanks!

Offline

#2 2019-11-07 14:04:59

PedroReina
Member
From: Madrid, Spain
Registered: 2019-01-13
Posts: 83  
Website

Re: Question about XDG menus

Looking forward for any answer to this question. I used time ago IceWM, still like it, and thought that is a good idea implement in IceWM the XDG menu structure. When I used IceWM, I edited their menu by hand.

Offline

#3 2019-11-07 17:32:33

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 335  
Website

Re: Question about XDG menus

Both icewm & windowmaker use the Debian menu system, see https://www.debian.org/doc/packaging-ma … l/ch6.html for the override methods.

EDIT: openbox can generate XDG menus on-the-fly using the openbox-menu package and this pipemenu entry:

<menu id="applications-menu" label="Applications" execute="/usr/bin/openbox-menu -i lxde-applications.menu"/>

But this is not possible with icewm or windowmaker, AFAICT.

Last edited by Head_on_a_Stick (2019-11-07 17:34:27)


Fabricando fit faber

Offline

#4 2019-11-10 01:10:49

bgstack15
Member
Registered: 2018-02-04
Posts: 81  

Re: Question about XDG menus

The Debian menu system predates the freedesktop.org standard of "XDG." I personally like some of the fd.o published specs (not to be confused with "standards") but others might be concerned because fd.o has published plenty of projects we disdain around here. The XDG menu stuff is fine, in my opinion, and it sounds like you have come across the same point of view.

I personally use Fluxbox and I have half-heartedly tried to use various projects and gave up. I guess application discovery just wasn't that important for my use cases.

Here are the examples for a project named "xdg-menu" from the Arch Wiki.

IceWM
With xdg_menu

$ xdg_menu --format icewm --fullmenu --root-menu /etc/xdg/menus/arch-applications.menu >>~/.icewm/programs

With update-menus

  • Uncomment icewm in /etc/update-menus.conf

  • run update-menus as root

  • make symlink to /var/cache/xdg-menu/icewm/programs in ~/.icewm/programs

WindowMaker
With xdg_menu
use

$ xdg_menu --format WindowMaker --root-menu /etc/xdg/menus/arch-applications.menu >my-wm-menu

and add

#include "my-wm-menu"

into your WindowMaker menu file.
You can also use the WPrefs "Application Menu Definitions", and add the xdg command as a parameter in a "Generated Submenu" object.
With update-menus

  • Uncomment WindowMaker in /etc/update-menus.conf

  • run update-menus as root

  • add

    #include "/var/cache/xdg-menu/WindowMaker/wmrc"

    into your menu file.

Offline

Board footer