Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Traditional menu broken in 11.4

  1. #11

    Default Re: Traditional menu broken in 11.4

    I don't know *where/why* XDG_MENU_PREFIX is set to "gnome-" on your system. I can not tell because I use my own /etc/gdm/Xsession (but I don't see it in the original file either). You can have a look in this file and in the other files it sources on its way to the gnome session. I use XDG_MENU_PREFIX in my /etc/gdm/Xsession for KDE sessions only (setting the prefix to kde4-) and XDG_CONFIG_DIRS to /usr/local/config/xdg, so it will look for <prefix->applications.menu in /usr/local/config/xdg/menus before it looks in /etc/xdg/menus. In all other cases, XDG_MENU_PREFIX is empty (for me), so I use applications.menu.

    • With XDG_MENU_PREFIX, you have influence on the menu name (applications.menu, gnome-, kde-, xfce-, -lxde or whatever you set in the environment)
    • With XDG_CONFIG_DIRS, you can change the location of the menu file.
    • With XDG_DATA_DIRS, you can choose the location of the .desktop and .directories files.


    Read the freedesktop specs for details: Desktop Menu Specification

  2. #12

    Default Re: Traditional menu broken in 11.4

    Sorry, I didn't see your post. Well done! You got it. I can explain why it isn't set for me: simply because I set XDG_CONFIG_DIRS in /etc/gdm/Xsession, as I mentioned above, and there is no gnome-applications.menu file in the first directory listed in this variable, but I have applications.menu, so it should take this one.... and maybe unset the variable afterwards (?).

  3. #13

    Default Re: Traditional menu broken in 11.4

    Quote Originally Posted by robin_listas View Post

    I have edited /usr/bin/gnome, the variable is set there. And it works!

    I found it by a brute force grep of the entire installation O:-)


    AHHHHhhhhh! :-)

    (what a relief...)
    I told you it would be easy to fix.

  4. #14
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Traditional menu broken in 11.4

    On 2011-05-12 17:06, please try again wrote:

    > I told you it would be easy to fix.


    Systemwide, changing the calling script, where it might be replaced by an
    update. Not the perfect place.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  5. #15
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Traditional menu broken in 11.4

    On 2011-05-12 17:06, please try again wrote:
    >
    > I don't know *where/why* XDG_MENU_PREFIX is set to "gnome-" on your
    > system.


    Ah, I said that in another post, where I wrote the solution: /usr/bin/gnome.

    Code:
    # Use gnome-applications.menu instead of applications.menu: its
    # structure is more appropriate.
    export XDG_MENU_PREFIX=gnome-
    I'll save the rest of your post for reference :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  6. #16
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Traditional menu broken in 11.4

    On 2011-05-12 16:36, please try again wrote:
    >
    > Stupid question: Do you also export this variable? Ok, sorry. It was a
    > stupid question.


    No, not stupid. I tried with export, too. No good.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  7. #17
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Traditional menu broken in 11.4

    On 2011-05-12 17:06, please try again wrote:
    >
    > Sorry, I didn't see your post. Well done! You got it. I can explain why
    > it isn't set for me: simply because I set XDG_CONFIG_DIRS in
    > /etc/gdm/Xsession, as I mentioned above, and there is no
    > gnome-applications.menu file in the first directory listed in this
    > variable, but I have applications.menu, so it should take this one....
    > and maybe unset the variable afterwards (?).


    I'll have to start a file with the modifications I have to do to the 11.4
    version, bugs discovered, hacks needed...

    Next thing to test: vmware server. It doesn't look good, so I'm delaying it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •