On Wed, Apr 27, 2011 at 09:06:31PM -0400, [email protected] wrote:
> Thomas Adam <[email protected]> writes:
>
> > On Tue, Apr 26, 2011 at 09:31:02PM -0400, [email protected] wrote:
> >> Jesús J. Guerrero Botella <[email protected]> writes:
> >>
> >> > $ 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.
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.)