Discussion:
FVWM: fvwm-menu-desktop doesn't recognize --desktop?
Jesús J. Guerrero Botella
2011-04-26 23:03:37 UTC
Permalink
Hello.

It's been long, but I've been looking the lists nonetheless. I know
that something happened in the menu generation tool(s) lately, but I
don't know if it's related to my problem. My fvwm-menu-desktop tool
doesn't seem to recognize the --desktop option any longer. The output
is as follows:

$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop

Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.

fvwm-menu-desktop alone produces no output.

Thanks beforehand.
--
Jesús Guerrero Botella
Thomas Adam
2011-04-26 23:12:20 UTC
Permalink
Post by Jesús J. Guerrero Botella
Hello.
It's been long, but I've been looking the lists nonetheless. I know
that something happened in the menu generation tool(s) lately, but I
don't know if it's related to my problem. My fvwm-menu-desktop tool
doesn't seem to recognize the --desktop option any longer. The output
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.
fvwm-menu-desktop alone produces no output.
And on Gentoo, do you have any XDG menuing software installed? (However
Gentoo defines that?)

The current code will look for both KDE and GNOME definitions, so the option
is meaningless to you. That said, if fvwm-menu-desktop is producing no
output without supplied options then:

* You have no XDG menuing software installed;
* The code assumes a path (as defined in the XDG spec) and Gentoo puts it
someplace else.

Is there really nothing on STDERR when you run this? Were get_root_menu()
to fail to find a menu, I would expect to see something. Especially since
that's even without the verbose flag set -- something you could also try
doing.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Jesús J. Guerrero Botella
2011-04-26 23:30:09 UTC
Permalink
And on Gentoo, do you have any XDG menuing software installed?  (However
Gentoo defines that?)
Well, I have a package called xdg-utils, kde is also installed so I'd
hope xdg to work ok. Is there any concrete xdg tool that
fvwm-menu-desktop depends upon?
The current code will look for both KDE and GNOME definitions, so the option
is meaningless to you.  That said, if fvwm-menu-desktop is producing no
* You have no XDG menuing software installed;
* The code assumes a path (as defined in the XDG spec) and Gentoo puts it
 someplace else.
I will investigate, it's probably the later, but that will be for tomorrow.
Is there really nothing on STDERR when you run this?  Were get_root_menu()
to fail to find a menu, I would expect to see something.  Especially since
that's even without the verbose flag set -- something you could also try
doing.
All the output is the one I pasted above. Nothing else. With verbosity
enabled I get something more:

$ fvwm-menu-desktop --verbose
DEBUG: foreach fvwm_app.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> mini/mini-x.xpm.
INTERMEDIATE icons to use fvwm_folder -> folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> folder.xpm.
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_folder.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_title.
INTERMEDIATE icons to use fvwm_title -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_toptitle.
INTERMEDIATE icons to use fvwm_title -> .
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini/mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> .
desktop dirs /usr/share/desktop-directories
KDE legacy dirs

DEBUG: root menu is
DEBUG: charset is UTF-8.
DEBUG: language is es_ES.utf8.
DEBUG: root-cmd is kdesu. at /usr/bin/fvwm-menu-desktop line 218.
ERROR: Can't find root menu file.

Thank you.
--
Jesús Guerrero Botella
Thomas Adam
2011-04-26 23:37:04 UTC
Permalink
Post by Jesús J. Guerrero Botella
And on Gentoo, do you have any XDG menuing software installed?  (However
Gentoo defines that?)
Well, I have a package called xdg-utils, kde is also installed so I'd
I do not know anything about Gentoo. One for you to investigate.
Post by Jesús J. Guerrero Botella
hope xdg to work ok. Is there any concrete xdg tool that
fvwm-menu-desktop depends upon?
No -- it's down to the packages in question following the XDG spec., and to
the packagers to ensure the resultant files are put in the same place the
spec., defines, whilst trying to maintain backwards-compatability with the
spec., etc., etc.
Post by Jesús J. Guerrero Botella
KDE legacy dirs
DEBUG: root menu is
DEBUG: charset is UTF-8.
DEBUG: language is es_ES.utf8.
DEBUG: root-cmd is kdesu. at /usr/bin/fvwm-menu-desktop line 218.
ERROR: Can't find root menu file.
There you go then. It just can't find the root menu.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
d***@verizon.net
2011-04-27 00:12:04 UTC
Permalink
Post by Jesús J. Guerrero Botella
And on Gentoo, do you have any XDG menuing software installed?  (However
Gentoo defines that?)
Well, I have a package called xdg-utils, kde is also installed so I'd
hope xdg to work ok. Is there any concrete xdg tool that
fvwm-menu-desktop depends upon?
The current code will look for both KDE and GNOME definitions, so the option
is meaningless to you.  That said, if fvwm-menu-desktop is producing no
* You have no XDG menuing software installed;
* The code assumes a path (as defined in the XDG spec) and Gentoo puts it
 someplace else.
I will investigate, it's probably the later, but that will be for tomorrow.
Is there really nothing on STDERR when you run this?  Were get_root_menu()
to fail to find a menu, I would expect to see something.  Especially since
that's even without the verbose flag set -- something you could also try
doing.
All the output is the one I pasted above. Nothing else. With verbosity
$ fvwm-menu-desktop --verbose
DEBUG: foreach fvwm_app.
...
Post by Jesús J. Guerrero Botella
desktop dirs /usr/share/desktop-directories
KDE legacy dirs
DEBUG: root menu is
DEBUG: charset is UTF-8.
DEBUG: language is es_ES.utf8.
DEBUG: root-cmd is kdesu. at /usr/bin/fvwm-menu-desktop line 218.
ERROR: Can't find root menu file.
Yep, tell us what is in /etc/xdg/menus/.

There should be a applications.menu or debian-menu.menu file.
Jesús J. Guerrero Botella
2011-04-27 00:16:09 UTC
Permalink
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu

I can send you the files if you need to take a look inside.
--
Jesús Guerrero Botella
d***@verizon.net
2011-04-27 01:31:02 UTC
Permalink
Post by Jesús J. Guerrero Botella
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
I can send you the files if you need to take a look inside.
Yes, send me lxde-applications.menu.
It's the only one of those that I don't have.

I think kde-4.6-applications would serve as a main menu, but
obviously, a name like that is a moving target.

Also check to see if you have XDG_CONFIG_DIRS set to some value.
In a terminal:

echo $XDG_CONFIG_DIRS

You can send the file and other stuff directly to me.
If there is something that needs sharing, I'll take care of it.

Thanks.
Thomas Adam
2011-04-27 17:50:51 UTC
Permalink
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
I can send you the files if you need to take a look inside.
Yes, send me lxde-applications.menu.
It's the only one of those that I don't have.
I think kde-4.6-applications would serve as a main menu, but
obviously, a name like that is a moving target.
Can't we just glob() for these or do a readdir() on these?

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Nathaniel H. Stickney
2011-04-27 18:06:10 UTC
Permalink
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
fvwm-menu-desktop alone produces no output.
Thanks beforehand.
For me, on ArchLinux...

$ fvwm --version
fvwm 2.7.0 compiled on Apr 15 2011 at 22:28:47
with support for: ReadLine, Stroke, XPM, PNG, SVG, Shape, XShm, SM,
Bidi text, XRender, XFT, NLS,

I also get no menu from fvwm-menu-desktop:

$ fvwm-menu-desktop
ERROR: Can't find root menu file.
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Yep, tell us what is in /etc/xdg/menus/.
There should be a applications.menu or debian-menu.menu file.
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
$ ls /etc/xdg/menus/
arch-applications.menu
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Also check to see if you have XDG_CONFIG_DIRS set to some value.
echo $XDG_CONFIG_DIRS
$ echo $XDG_CONFIG_DIRS
/etc/xdg

Don't know if it helps to have another voice, but I wanted to pass
along my results as well. As Jesús mentioned, thanks beforehand.

God Bless,
Stick
Thomas Adam
2011-04-27 19:20:53 UTC
Permalink
Post by Jesús J. Guerrero Botella
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
fvwm-menu-desktop alone produces no output.
Thanks beforehand.
For me, on ArchLinux...
$ fvwm --version
fvwm 2.7.0 compiled on Apr 15 2011 at 22:28:47
with support for: ReadLine, Stroke, XPM, PNG, SVG, Shape, XShm, SM,
Bidi text, XRender, XFT, NLS,
$ fvwm-menu-desktop
ERROR: Can't find root menu file.
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Yep, tell us what is in /etc/xdg/menus/.
There should be a applications.menu or debian-menu.menu file.
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
$ ls /etc/xdg/menus/
arch-applications.menu
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
Also check to see if you have XDG_CONFIG_DIRS set to some value.
echo $XDG_CONFIG_DIRS
$ echo $XDG_CONFIG_DIRS
/etc/xdg
Don't know if it helps to have another voice, but I wanted to pass
along my results as well. As Jesús mentioned, thanks beforehand.
I've not tried this, but does the patch attached help? I suspect though,
given the recursive nature of the output_fvwm2_menu(), this will double up
menu definitions each and every time you call fvwm-menu-desktop.

Dan -- one for you to look at, assuming this patch hasn't trod on your toes
already, but it might be the way to go -- at least in considering multiple
.menu definition files.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Jesús J. Guerrero Botella
2011-04-27 21:20:16 UTC
Permalink
Post by Thomas Adam
I've not tried this, but does the patch attached help?
At least it does produce some output. This is with --verbose.

$ fvwm-menu-desktop --verbose | xsel
DEBUG: foreach fvwm_app.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> mini/mini-x.xpm.
INTERMEDIATE icons to use fvwm_folder -> folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> folder.xpm.
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_folder.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_title.
INTERMEDIATE icons to use fvwm_title -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_toptitle.
INTERMEDIATE icons to use fvwm_title -> .
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini/mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> .
desktop dirs /usr/share/desktop-directories
KDE legacy dirs

DEBUG: charset is UTF-8.
DEBUG: language is es_ES.utf8.
DEBUG: root-cmd is kdesu. at /usr/bin/fvwm-menu-desktop line 219.
reading '/etc/xdg/menus/kde-4.6-applications.menu'
WARNING: '/etc/xdg/menus/applications-kmenuedit.menu' does not exist
Read directory entry, opening file
/usr/share/desktop-directories/lxde-system.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-development-translation.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-miscellaneous.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-science.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-personal.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-office.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-information.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-graphics.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-network.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-mathematics.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-system.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-pim.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-development-webdevelopment.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-tools.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-menu-system.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-utility-accessibility.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-menu-applications.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-utility.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-hardware.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-education.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-development.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-file.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-science.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-game.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-accessibility.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-kids.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-more.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-multimedia.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-peripherals.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-card.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-roguelikes.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-settingsmenu.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-strategy.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-office.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-internet.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-arcade.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-xutils.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-development.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-settings-system.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-internet-and-network.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-graphics.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-internet-terminal.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-settings.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-logic.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-system-terminal.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-desktop.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-main.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-other.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-toys.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-education.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-board.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-languages.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-look-and-feel.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-system-tools.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-unknown.directory.
Read directory entry, opening file
/usr/share/desktop-directories/lxde-audio-video.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-editors.directory.
Unknown 'DefaultLayout':
'HASH(0xcf4300) 0
Merge ARRAY(0xcd5400) 0
Merge ARRAY(0xcd54c0) 0
Separator ARRAY(0xcd5538) 0
Menuname ARRAY(0xcd55e0) 0
'
Unknown 'Layout':
'HASH(0xcd5688) 0
Merge ARRAY(0xcd57d8) 0
Menuname ARRAY(0xcd5850) 0
Merge ARRAY(0xcd5970) 0
'
Unknown 'Layout':
'HASH(0xd50090) 0
Merge ARRAY(0xd51538) 0
Filename ARRAY(0xd515b0) 0
Filename ARRAY(0xd51688) 0
Separator ARRAY(0xd51760) 0
Filename ARRAY(0xd51808) 0
Filename ARRAY(0xd518e0) 0
Filename ARRAY(0xd519b8) 0
Merge ARRAY(0xd51ad8) 0
Separator ARRAY(0xd51b50) 0
Menuname ARRAY(0xd51bf8) 0
'
reading '/etc/xdg/menus/kde-information.menu'
reading '/etc/xdg/menus/lxde-applications.menu'
Unknown 'Layout':
'HASH(0xd3b728) 0
Merge ARRAY(0xd3b5f0) 0
Merge ARRAY(0xd3b968) 0
'
Unknown 'Layout':
'HASH(0xd3b938) 0
Merge ARRAY(0xd3bb30) 0
Merge ARRAY(0xd3bbf0) 0
Separator ARRAY(0xd3bc68) 0
Menuname ARRAY(0xd3bd40) 0
'
reading '/etc/xdg/menus/kde-4.6-applications.menu'
WARNING: '/etc/xdg/menus/applications-kmenuedit.menu' does not exist
Unknown 'DefaultLayout':
'HASH(0xd306a8) 0
Merge ARRAY(0xd307f8) 0
Merge ARRAY(0xd30888) 0
Separator ARRAY(0xd309c0) 0
Menuname ARRAY(0xd30a98) 0
'
Unknown 'Layout':
'HASH(0xd30ae0) 0
Merge ARRAY(0xd308d0) 0
Menuname ARRAY(0xd30c48) 0
Merge ARRAY(0xd30d08) 0
'
Unknown 'Layout':
'HASH(0xd51d00) 0
Merge ARRAY(0xd51eb0) 0
Filename ARRAY(0xd51ef8) 0
Filename ARRAY(0xd52030) 0
Separator ARRAY(0xd51d90) 0
Filename ARRAY(0xd520c0) 0
Filename ARRAY(0xd521f8) 0
Filename ARRAY(0xd522d0) 0
Merge ARRAY(0xd52450) 0
Separator ARRAY(0xd52498) 0
Menuname ARRAY(0xd55498) 0
'
reading '/etc/xdg/menus/kde-information.menu'
reading '/etc/xdg/menus/lxde-applications.menu'
Unknown 'Layout':
'HASH(0xd3ec90) 0
Merge ARRAY(0xd3c220) 0
Merge ARRAY(0xd3f410) 0
'
Unknown 'Layout':
'HASH(0xcf43c0) 0
Merge ARRAY(0xd3ed08) 0
Merge ARRAY(0xcd57a8) 0
Separator ARRAY(0xd3c010) 0
Menuname ARRAY(0xd3c1f0) 0
'
--
Jesús Guerrero Botella
d***@verizon.net
2011-04-28 01:42:15 UTC
Permalink
Post by Nathaniel H. Stickney
Post by d***@verizon.net
Also check to see if you have XDG_CONFIG_DIRS set to some value.
echo $XDG_CONFIG_DIRS
$ echo $XDG_CONFIG_DIRS
Ah, I should have asked what's in:

$XDG_MENU_PREFIX
Jesús J. Guerrero Botella
2011-04-28 06:27:07 UTC
Permalink
Post by d***@verizon.net
Post by Nathaniel H. Stickney
Post by d***@verizon.net
Also check to see if you have XDG_CONFIG_DIRS set to some value.
echo $XDG_CONFIG_DIRS
$ echo $XDG_CONFIG_DIRS
$XDG_MENU_PREFIX
I know that variable, it has hit me in the past so it's the first
thing I looked at. It's unset.
--
Jesús Guerrero Botella
Nathaniel H. Stickney
2011-04-28 11:31:24 UTC
Permalink
Post by d***@verizon.net
$XDG_MENU_PREFIX
On my system, $XDG_MENU_PREFIX isn't set. Should it be in order to work?
d***@verizon.net
2011-04-28 01:06:31 UTC
Permalink
Post by Thomas Adam
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
I can send you the files if you need to take a look inside.
Yes, send me lxde-applications.menu.
It's the only one of those that I don't have.
I think kde-4.6-applications would serve as a main menu, but
obviously, a name like that is a moving target.
Can't we just glob() for these or do a readdir() on these?
No, you're on the wrong track.

All that needs changing is the identifier for the root menu.

This code:

my @menu_bases = (qw(
applications
debian-menu
)
);

Just add lxde-applications to that list like this:

my @menu_bases = (qw(
lxde-applications
applications
debian-menu
)
);

and you'll be in business.

But none of this makes sense to me.
The code we are using came from arch-linux.

I'll see if I can figure out what they've been up to.
Thomas Adam
2011-04-28 01:14:28 UTC
Permalink
Post by d***@verizon.net
Post by Thomas Adam
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
I can send you the files if you need to take a look inside.
Yes, send me lxde-applications.menu.
It's the only one of those that I don't have.
I think kde-4.6-applications would serve as a main menu, but
obviously, a name like that is a moving target.
Can't we just glob() for these or do a readdir() on these?
No, you're on the wrong track.
All that needs changing is the identifier for the root menu.
applications
debian-menu
)
);
lxde-applications
applications
debian-menu
)
);
and you'll be in business.
I remember adding that. But...

Didn't I read in the XDG spec that any .menu file in there should be
considered? It would be ludicrous to think that the XDG spec defined this
on a per-distro basis, hence why trying to rely on the filenames alone is
never going to work.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Thomas Adam
2011-04-28 01:20:19 UTC
Permalink
Post by d***@verizon.net
Post by Thomas Adam
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
I can send you the files if you need to take a look inside.
Yes, send me lxde-applications.menu.
It's the only one of those that I don't have.
I think kde-4.6-applications would serve as a main menu, but
obviously, a name like that is a moving target.
Can't we just glob() for these or do a readdir() on these?
No, you're on the wrong track.
All that needs changing is the identifier for the root menu.
applications
debian-menu
)
);
lxde-applications
applications
debian-menu
)
);
and you'll be in business.
But none of this makes sense to me.
The code we are using came from arch-linux.
I'll see if I can figure out what they've been up to.
OK -- it seems a bit stupid to me. But:

http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html

Says:

$XDG_CONFIG_DIRS/menus/${XDG_MENU_PREFIX}applications.menu This file
contains the XML definition of the main application menu layout. The first
file found in the search path should be used; other files are ignored. This
implies that if the user has their own ${XDG_MENU_PREFIX}applications.menu,
it replaces the system wide one. (Though the user's menu may explicitly
merge the system wide one.)

Systems that offer multiple desktop environments and that want to use
distinct menu layouts in the different environments can use differently
prefixed .menu files. In this case the $XDG_MENU_PREFIX environment variable
must be set by the system to reflect the .menu file that is being used.

For example if a system contains both the GNOME and the KDE desktop
environments it can decide to use gnome-applications.menu as the menu layout
in GNOME sessions and kde-applications.menu as the menu layout in KDE
sessions. To correctly reflect this, it should set the $XDG_MENU_PREFIX
environment variable to "gnome-" respectively "kde-".

Implementations may chose to use .menu files with other names for tasks or
menus other than the main application menu. Such usage is not covered by
this specification.


But we're not setting or using XDG_MENU_PREFIX, so perhaps we ought to be.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
d***@verizon.net
2011-04-29 19:02:56 UTC
Permalink
Post by Thomas Adam
Post by d***@verizon.net
Post by Thomas Adam
Post by d***@verizon.net
Post by Jesús J. Guerrero Botella
$ ls /etc/xdg/menus/
kde-4.6-applications.menu kde-information.menu lxde-applications.menu
I can send you the files if you need to take a look inside.
Yes, send me lxde-applications.menu.
It's the only one of those that I don't have.
I think kde-4.6-applications would serve as a main menu, but
obviously, a name like that is a moving target.
Can't we just glob() for these or do a readdir() on these?
No, you're on the wrong track.
All that needs changing is the identifier for the root menu.
applications
debian-menu
)
);
lxde-applications
applications
debian-menu
)
);
and you'll be in business.
But none of this makes sense to me.
The code we are using came from arch-linux.
I'll see if I can figure out what they've been up to.
http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html
$XDG_CONFIG_DIRS/menus/${XDG_MENU_PREFIX}applications.menu This file
contains the XML definition of the main application menu layout. The first
file found in the search path should be used; other files are ignored. This
implies that if the user has their own ${XDG_MENU_PREFIX}applications.menu,
it replaces the system wide one. (Though the user's menu may explicitly
merge the system wide one.)
Systems that offer multiple desktop environments and that want to use
distinct menu layouts in the different environments can use differently
prefixed .menu files. In this case the $XDG_MENU_PREFIX environment variable
must be set by the system to reflect the .menu file that is being used.
For example if a system contains both the GNOME and the KDE desktop
environments it can decide to use gnome-applications.menu as the menu layout
in GNOME sessions and kde-applications.menu as the menu layout in KDE
sessions. To correctly reflect this, it should set the $XDG_MENU_PREFIX
environment variable to "gnome-" respectively "kde-".
Implementations may chose to use .menu files with other names for tasks or
menus other than the main application menu. Such usage is not covered by
this specification.
But we're not setting or using XDG_MENU_PREFIX, so perhaps we ought to be.
I think we're getting emails late?

The change I committed a day or 2 ago uses XDG_MENU_PREFIX.
Thomas Adam
2011-04-29 19:07:36 UTC
Permalink
Post by d***@verizon.net
I think we're getting emails late?
The change I committed a day or 2 ago uses XDG_MENU_PREFIX.
Seems that way, yes.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Jesús J. Guerrero Botella
2011-04-29 22:02:40 UTC
Permalink
Post by d***@verizon.net
The change I committed a day or 2 ago uses XDG_MENU_PREFIX.
I am trying but it doesn't seem to work.

[Jesus-PC] ***@Jesus-PC:~/tmp/fvwm
[Jesus-PC] 23:58:41 $ ls /etc/xdg/menus/
gnome-applications.menu kde-4.6-applications.menu
kde-information.menu settings.menu
[Jesus-PC] ***@Jesus-PC:~/tmp/fvwm
[Jesus-PC] 00:00:15 $ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop
ERROR: Can't find root menu file.
[Jesus-PC] ***@Jesus-PC:~/tmp/fvwm
[Jesus-PC] 00:00:38 $ bin/fvwm-menu-desktop
ERROR: Can't find root menu file.

If I ln -s the applications.menu file, now it seems to do something.

[Jesus-PC] ***@Jesus-PC:~/tmp/fvwm
[Jesus-PC] 00:00:44 $ bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title

Unfortunately the menu is empty. In any case, it seems that the tool
still ignore the XDG_MENU_PREFIX variable. Am I missing something
here?
--
Jesús Guerrero Botella
Jesús J. Guerrero Botella
2011-04-29 22:03:34 UTC
Permalink
This is with a checkout from cvs that I just did today.
--
Jesús Guerrero Botella
Thomas Adam
2011-04-29 22:23:21 UTC
Permalink
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
The change I committed a day or 2 ago uses XDG_MENU_PREFIX.
I am trying but it doesn't seem to work.
[Jesus-PC] 23:58:41 $ ls /etc/xdg/menus/
gnome-applications.menu kde-4.6-applications.menu
kde-information.menu settings.menu
[Jesus-PC] 00:00:15 $ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop
ERROR: Can't find root menu file.
[Jesus-PC] 00:00:38 $ bin/fvwm-menu-desktop
ERROR: Can't find root menu file.
If I ln -s the applications.menu file, now it seems to do something.
[Jesus-PC] 00:00:44 $ bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
Unfortunately the menu is empty. In any case, it seems that the tool
still ignore the XDG_MENU_PREFIX variable. Am I missing something
here?
Did you checkout branch-2_6? Only it works fine for me.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Jesús J. Guerrero Botella
2011-04-30 07:00:55 UTC
Permalink
Did you checkout branch-2_6?  Only it works fine for me.
That was the problem, but it still doesn't work.

$ grep XDG bin/fvwm-menu-desktop
my $xdg_data_dirs = $ENV{XDG_DATA_DIRS} || '';
my $xdg_config_dirs = $ENV{XDG_CONFIG_DIRS} || '';
my $xdg_menu_prefix = $ENV{XDG_MENU_PREFIX} || '';
$ bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
$ XDG_MENU_PREFIX=kde- bin/fvwm-menu-desktop
$ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
$ XDG_MENU_PREFIX=kde- bin/fvwm-menu-desktop --verbose
DEBUG: foreach fvwm_app.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> mini/mini-x.xpm.
INTERMEDIATE icons to use fvwm_folder -> folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> folder.xpm.
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_folder.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_title.
INTERMEDIATE icons to use fvwm_title -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_toptitle.
INTERMEDIATE icons to use fvwm_title -> .
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini/mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> .
desktop dirs /usr/share/desktop-directories
KDE legacy dirs

DEBUG: root menu is
DEBUG: charset is UTF-8.
DEBUG: language is es_ES.utf8.
DEBUG: root-cmd is kdesu. at bin/fvwm-menu-desktop line 217.
ERROR: Can't find root menu file.
$ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop --verbose
DEBUG: foreach fvwm_app.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> mini/mini-x.xpm.
INTERMEDIATE icons to use fvwm_folder -> folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> folder.xpm.
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_folder.
INTERMEDIATE icons to use fvwm_title -> folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> folder.xpm.
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_title.
INTERMEDIATE icons to use fvwm_title -> mini/folder.xpm.
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> mini-k.xpm.
DEBUG: foreach fvwm_toptitle.
INTERMEDIATE icons to use fvwm_title -> .
INTERMEDIATE icons to use fvwm_app -> .
INTERMEDIATE icons to use fvwm_folder -> .
INTERMEDIATE icons to use fvwm_toptitle -> mini/mini-k.xpm.
icons to use fvwm_title -> .
icons to use fvwm_app -> .
icons to use fvwm_folder -> .
icons to use fvwm_toptitle -> .
desktop dirs /usr/share/desktop-directories
KDE legacy dirs

DEBUG: root menu is /etc/xdg/menus/gnome-applications.menu
DEBUG: charset is UTF-8.
DEBUG: language is es_ES.utf8.
DEBUG: root-cmd is kdesu. at bin/fvwm-menu-desktop line 217.
reading '/etc/xdg/menus/gnome-applications.menu'
legacy directory '/etc/X11/applnk' not found
Read desktop entry, opening file /usr/share/gnome/apps/amdcccle.desktop.
Read desktop entry, opening file /usr/share/gnome/apps/amdccclesu.desktop.
reading legacy directory '/usr/share/gnome/apps'
Read directory entry, opening file
/usr/share/desktop-directories/kde-development-translation.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-miscellaneous.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-science.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-information.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-graphics.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-mathematics.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-system.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-pim.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-development-webdevelopment.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-tools.directory.
Read directory entry, opening file
/usr/share/desktop-directories/X-GNOME-Menu-Applications.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Network.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-file.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Personal.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-science.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-accessibility.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-kids.directory.
Read directory entry, opening file
/usr/share/desktop-directories/AudioVideo.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-more.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-multimedia.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-peripherals.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Utility-Accessibility.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Utility.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-card.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-roguelikes.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-settingsmenu.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-strategy.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-office.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-internet.directory.
Read directory entry, opening file
/usr/share/desktop-directories/X-GNOME-Menu-System.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-arcade.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-xutils.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-development.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Game.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-internet-terminal.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Settings-System.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Office.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-logic.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-system-terminal.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-utilities-desktop.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-main.directory.
Read directory entry, opening file
/usr/share/desktop-directories/LookAndFeel.directory.
Read directory entry, opening file
/usr/share/desktop-directories/System-Tools.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Hardware.directory.
Read directory entry, opening file
/usr/share/desktop-directories/System.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-toys.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Education.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-education.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Settings.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-games-board.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-edu-languages.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Graphics.directory.
Read directory entry, opening file
/usr/share/desktop-directories/InternetAndNetwork.directory.
Read directory entry, opening file
/usr/share/desktop-directories/Development.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-unknown.directory.
Read directory entry, opening file
/usr/share/desktop-directories/kde-editors.directory.
Read directory entry, opening file
/usr/share/desktop-directories/X-GNOME-Other.directory.
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title


So, it seems there's a problem somewhere, and it also seems like the
problem with "kde-" is not even the same I get with the rest of menus
becaise it doesn't even begin to destroy and create the menu.

Would an strace dump help you?

Thanks Thomas Adam and despen for everything.
--
Jesús Guerrero Botella
d***@verizon.net
2011-04-30 14:54:22 UTC
Permalink
Post by Jesús J. Guerrero Botella
Did you checkout branch-2_6?  Only it works fine for me.
That was the problem, but it still doesn't work.
$ grep XDG bin/fvwm-menu-desktop
my $xdg_data_dirs = $ENV{XDG_DATA_DIRS} || '';
my $xdg_config_dirs = $ENV{XDG_CONFIG_DIRS} || '';
my $xdg_menu_prefix = $ENV{XDG_MENU_PREFIX} || '';
Okay, now you have the right version.
Post by Jesús J. Guerrero Botella
$ bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
Since you don't have an /etc/xdg/menus/applications.menu
file, this is not expected to work.
Post by Jesús J. Guerrero Botella
$ XDG_MENU_PREFIX=kde- bin/fvwm-menu-desktop
Looks like you don't have an /etc/xdg/menus/kde-applications.menu
file. I don't either, but I do have a
/etc/xdg/menus/kde4-applications.menu
file.
Post by Jesús J. Guerrero Botella
$ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
Looks like you don't have a
/etc/xdg/menus/gnome-applications.menu
file. Neither do I.
Post by Jesús J. Guerrero Botella
$ XDG_MENU_PREFIX=kde- bin/fvwm-menu-desktop --verbose
...
Post by Jesús J. Guerrero Botella
ERROR: Can't find root menu file.
To be expected.
Post by Jesús J. Guerrero Botella
$ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop --verbose
DEBUG: root menu is /etc/xdg/menus/gnome-applications.menu
Hmm, looks like you actually do have an gnome-applications.menu.
Post by Jesús J. Guerrero Botella
Read desktop entry, opening file /usr/share/gnome/apps/amdcccle.desktop.
Read desktop entry, opening file /usr/share/gnome/apps/amdccclesu.desktop.
/usr/share/desktop-directories/kde-development-translation.directory.
/usr/share/desktop-directories/kde-edu-miscellaneous.directory.
/usr/share/desktop-directories/kde-edu-science.directory.
/usr/share/desktop-directories/kde-information.directory.
/usr/share/desktop-directories/kde-graphics.directory.
/usr/share/desktop-directories/kde-edu-mathematics.directory.
/usr/share/desktop-directories/kde-system.directory.
/usr/share/desktop-directories/kde-utilities-pim.directory.
/usr/share/desktop-directories/kde-development-webdevelopment.directory.
/usr/share/desktop-directories/kde-edu-tools.directory.
/usr/share/desktop-directories/X-GNOME-Menu-Applications.directory.
/usr/share/desktop-directories/Network.directory.
/usr/share/desktop-directories/kde-utilities-file.directory.
/usr/share/desktop-directories/Personal.directory.
/usr/share/desktop-directories/kde-science.directory.
/usr/share/desktop-directories/kde-utilities-accessibility.directory.
/usr/share/desktop-directories/kde-games-kids.directory.
/usr/share/desktop-directories/AudioVideo.directory.
/usr/share/desktop-directories/kde-more.directory.
/usr/share/desktop-directories/kde-multimedia.directory.
/usr/share/desktop-directories/kde-utilities.directory.
/usr/share/desktop-directories/kde-utilities-peripherals.directory.
/usr/share/desktop-directories/Utility-Accessibility.directory.
/usr/share/desktop-directories/Utility.directory.
/usr/share/desktop-directories/kde-games-card.directory.
/usr/share/desktop-directories/kde-games-roguelikes.directory.
/usr/share/desktop-directories/kde-settingsmenu.directory.
/usr/share/desktop-directories/kde-games-strategy.directory.
/usr/share/desktop-directories/kde-office.directory.
/usr/share/desktop-directories/kde-internet.directory.
/usr/share/desktop-directories/X-GNOME-Menu-System.directory.
/usr/share/desktop-directories/kde-games-arcade.directory.
/usr/share/desktop-directories/kde-utilities-xutils.directory.
/usr/share/desktop-directories/kde-development.directory.
/usr/share/desktop-directories/Game.directory.
/usr/share/desktop-directories/kde-internet-terminal.directory.
/usr/share/desktop-directories/Settings-System.directory.
/usr/share/desktop-directories/Office.directory.
/usr/share/desktop-directories/kde-games.directory.
/usr/share/desktop-directories/kde-games-logic.directory.
/usr/share/desktop-directories/kde-system-terminal.directory.
/usr/share/desktop-directories/kde-utilities-desktop.directory.
/usr/share/desktop-directories/kde-main.directory.
/usr/share/desktop-directories/LookAndFeel.directory.
/usr/share/desktop-directories/System-Tools.directory.
/usr/share/desktop-directories/Hardware.directory.
/usr/share/desktop-directories/System.directory.
/usr/share/desktop-directories/kde-toys.directory.
/usr/share/desktop-directories/Education.directory.
/usr/share/desktop-directories/kde-education.directory.
/usr/share/desktop-directories/Settings.directory.
/usr/share/desktop-directories/kde-games-board.directory.
/usr/share/desktop-directories/kde-edu-languages.directory.
/usr/share/desktop-directories/Graphics.directory.
/usr/share/desktop-directories/InternetAndNetwork.directory.
/usr/share/desktop-directories/Development.directory.
/usr/share/desktop-directories/kde-unknown.directory.
/usr/share/desktop-directories/kde-editors.directory.
/usr/share/desktop-directories/X-GNOME-Other.directory.
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
Looks like the gnome- root menu leads to some good files
but it's not finding good information in the file.
Please send one of them to me. (Not the list.)

This might be a good one:

/usr/share/desktop-directories/Settings.directory
d***@verizon.net
2011-04-29 23:07:39 UTC
Permalink
Post by Jesús J. Guerrero Botella
Post by d***@verizon.net
The change I committed a day or 2 ago uses XDG_MENU_PREFIX.
I am trying but it doesn't seem to work.
[Jesus-PC] 23:58:41 $ ls /etc/xdg/menus/
gnome-applications.menu kde-4.6-applications.menu
kde-information.menu settings.menu
[Jesus-PC] 00:00:15 $ XDG_MENU_PREFIX=gnome- bin/fvwm-menu-desktop
ERROR: Can't find root menu file.
[Jesus-PC] 00:00:38 $ bin/fvwm-menu-desktop
ERROR: Can't find root menu file.
If I ln -s the applications.menu file, now it seems to do something.
[Jesus-PC] 00:00:44 $ bin/fvwm-menu-desktop
DestroyMenu "FvwmMenu"
AddToMenu "FvwmMenu" "Aplicaciones" Title
Unfortunately the menu is empty. In any case, it seems that the tool
still ignore the XDG_MENU_PREFIX variable. Am I missing something
here?
Do:

grep XDG_MENU_PREFIX bin/fvwm-menu-desktop
d***@verizon.net
2011-04-27 00:03:06 UTC
Permalink
Post by Jesús J. Guerrero Botella
Hello.
It's been long, but I've been looking the lists nonetheless. I know
that something happened in the menu generation tool(s) lately, but I
don't know if it's related to my problem. My fvwm-menu-desktop tool
doesn't seem to recognize the --desktop option any longer. The output
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
It was my intent to support all the old options, even
if all the script did was ignore them.

Looks like I missed this one.

I'll fix it, maybe not right away though.
Jesús J. Guerrero Botella
2011-04-28 06:20:05 UTC
Permalink
Post by Jesús J. Guerrero Botella
Hello.
It's been long, but I've been looking the lists nonetheless. I know
that something happened in the menu generation tool(s) lately, but I
don't know if it's related to my problem. My fvwm-menu-desktop tool
doesn't seem to recognize the --desktop option any longer. The output
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.
fvwm-menu-desktop alone produces no output.
Thanks beforehand.
Is this a relatively recent Gentoo?
I looked around and
there really should be an "applications.menu" available.
The solution I gave, using lxde-applications should work but
I'm reluctant to add that change to Fvwm.  The change should be
on the Gentoo end unless I can be convinced otherwise.
It's completely up to date, the problem is not that. However I might
be able to clear out something if I discover which package is the one
that installs such "application.menu" file and tweak the ebuild to
make fvwm depend on it conditionally (via an "xdg" USE flag or
something like that).
--
Jesús Guerrero Botella
Jesús J. Guerrero Botella
2011-04-28 09:28:11 UTC
Permalink
I have been looking around and found that each desktop installs its
own menu file in there, but there's no "generic/ballback"
applications.menu file that WMs like fvwm can use. So, can you give me
an overview on how *your* distro of choice handles this? Is there a
generic "xdg-menu" package or is the file generated using some script
of those available on the net?

Even if you parse all the file in /etc/xdg/menus/ that doesn't solve
the problem in Gentoo from the root, because you need kde, lxde, gnome
or whatever else installed to get an xdg menu file. So, as I see it,
there are two posibilities if we want xdg menu support in fvwm: either
ship an fvwm-applications.menu file or fix it in the Gentoo side by
adding the file in a new package, and making fvwm depend on it.

So, what do you think?
--
Jesús Guerrero Botella
d***@verizon.net
2011-04-28 17:51:33 UTC
Permalink
Post by Jesús J. Guerrero Botella
I have been looking around and found that each desktop installs its
own menu file in there, but there's no "generic/ballback"
applications.menu file that WMs like fvwm can use. So, can you give me
an overview on how *your* distro of choice handles this? Is there a
generic "xdg-menu" package or is the file generated using some script
of those available on the net?
Even if you parse all the file in /etc/xdg/menus/ that doesn't solve
the problem in Gentoo from the root, because you need kde, lxde, gnome
or whatever else installed to get an xdg menu file. So, as I see it,
there are two posibilities if we want xdg menu support in fvwm: either
ship an fvwm-applications.menu file or fix it in the Gentoo side by
adding the file in a new package, and making fvwm depend on it.
So, what do you think?
See my other post.

A distribution should either:

create an applications.menu
OR
export an XDG_MENU_PREFIX.

That's if they want to support xdg_menus.

You can easily to this stuff yourself, but I'd say it should be done
at the distro level.

I don't think Fvwm should try to get into the root menu business,
but we probably should create some .desktop/.menu files if we want
Fvwm stuff to appear in the standard menus.
d***@verizon.net
2011-04-28 01:20:33 UTC
Permalink
Post by Jesús J. Guerrero Botella
Hello.
It's been long, but I've been looking the lists nonetheless. I know
that something happened in the menu generation tool(s) lately, but I
don't know if it's related to my problem. My fvwm-menu-desktop tool
doesn't seem to recognize the --desktop option any longer. The output
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.
fvwm-menu-desktop alone produces no output.
Thanks beforehand.
Is this a relatively recent Gentoo?

I looked around and
there really should be an "applications.menu" available.
The solution I gave, using lxde-applications should work but
I'm reluctant to add that change to Fvwm. The change should be
on the Gentoo end unless I can be convinced otherwise.
d***@verizon.net
2011-05-03 12:51:16 UTC
Permalink
Post by Jesús J. Guerrero Botella
Hello.
It's been long, but I've been looking the lists nonetheless. I know
that something happened in the menu generation tool(s) lately, but I
don't know if it's related to my problem. My fvwm-menu-desktop tool
doesn't seem to recognize the --desktop option any longer. The output
$ fvwm-menu-desktop --desktop kde-sys
Unknown option: desktop
Nothing else. So, where should I be looking to diagnose this? I use
Gentoo and fvwm 2.6.1.
fvwm-menu-desktop alone produces no output.
After much testing and help from Jesús, we've determined that the
reason for the lack of generated menus is the missing
script "kde-config" on Gentoo.

His Gentoo system does have kde4-config which works as a substitute.
Just create a soft link from kde4-config to kde-config.

I'm not happy with fvwm-menu-desktop depending on kde-config and will
be looking at making changes to fix this issue.

Thanks Jesús!
--
Dan Espen
Jesús J. Guerrero Botella
2011-05-03 14:17:54 UTC
Permalink
After much testing and help from Jesús, we've determined that the
reason for the lack of generated menus is the missing
script "kde-config" on Gentoo.
His Gentoo system does have kde4-config which works as a substitute.
Yep. I am not sure this is a Gentoo-only thing or if this is the
general trend. In any case this is something that shouldn't bit users
that use XDG_MENU_PREFIX=gnome- (or lxde or whatever else that's not
kde-*). And in any case, kdelibs is too much of a dependency for a
menu generation tool like fvwm-menu-desktop, I think. The culprit for
this bug is -I guess- the get_app_dirs subroutine, which
unconditionally aborts if kde-config is not found, regardless of your
XDG_MENU_PREFIX settings, which is wrong.
Just create a soft link from kde4-config to kde-config.
In case anyone else is hit by this, what I do now is to keep a local
copy of the fvwm-menu-desktop tool at my ~/fvwm/ dir. The modified
file is attached. It's not a fix and I won't offer support for it
because I don't know how to fix the problem myself. I am just working
around it. I just don't like leaving soft links around that I might
forget about in the future and the patched fvwm-menu-desktop file can
live in my $HOME gracefully without tainting my OS.
I'm not happy with fvwm-menu-desktop depending on kde-config and will
be looking at making changes to fix this issue.
Thanks Jesús!
Thanks to you. At least now I have a working app menu ;)
--
Jesús Guerrero Botella
Loading...