Results 1 to 6 of 6

Thread: Rebuilding KDE menus

  1. #1
    Join Date
    Jun 2008
    Location
    Norwich, UK
    Posts
    215

    Default Rebuilding KDE menus

    After installing openSUSE 11.3 (retaining my old /home) and attempting to
    upgrade to KDE 4.5, failing to get KDE to run, downgrading to 4.4 I've now
    got nothing in the KDE Application menu.

    I've googled around and found ...
    <code>
    mv ~/.config/menus ~/.config/menus.SAV
    kbuildsycoca4 --noincremental
    </code>

    but I get fistfulls of errors (at least I assume they're errors) like ...

    kbuildsycoca4(19768) KBuildMimeTypeFactory::createEntry: Missing <comment>
    field in "application/x-wine-extension-odcnewfile.xml"

    kbuildsycoca4(19768) KConfigGroup::readXdgListEntry: List entry Actions in
    "ServiceMenus/krename_all_nonrec.desktop" is not compliant with XDG standard
    (missing trailing semicolon).

    kbuildsycoca4(19768) VFolderMenu:ushDocInfo: Menu "applications.menu" not
    found.
    kbuildsycoca4(19768): "applications.menu" not found in
    ("/home/alan/.config/menus/", "/etc/xdg/menus/")

    and I still have an empty applications menu :-(

    Can anybody enlighten me as to how I can get KDE to rebuild the menus?

    --
    Alan

  2. #2
    Join Date
    Jul 2009
    Location
    Montreal, Québec
    Posts
    833

    Default Re : Rebuilding KDE menus

    Hi,

    Try the following command to revert to the default in KDE:

    Code:
    mv ~/.kde4/share/config/plasma-desktop-appletsrc ~/.kde4/share/config/plasma-desktop-appletsrc.old

  3. #3
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,061

    Default Re: Re : Rebuilding KDE menus

    DaaX, you should take a look into the files you refer to before posting such hints. plasma-desktop-appletsrc does not contain KMenu-entries, those are stored in ~/.config/menus/applications-kmenuedit.menu.

  4. #4

    Default Re: Rebuilding KDE menus

    Quote Originally Posted by fudokai View Post
    Code:
    kbuildsycoca4(19768) KConfigGroup::readXdgListEntry: List entry Actions in
    "ServiceMenus/krename_all_nonrec.desktop" is not compliant with XDG standard
    (missing trailing semicolon).
    This is relatively harmless.

    Quote Originally Posted by fudokai View Post
    Code:
    kbuildsycoca4(19768) VFolderMenu::pushDocInfo: Menu "applications.menu" not
    found.
    kbuildsycoca4(19768): "applications.menu"  not found in
    ("/home/alan/.config/menus/", "/etc/xdg/menus/")
    This is a fatal error.


    Quote Originally Posted by fudokai View Post
    and I still have an empty applications menu :-(
    Can anybody enlighten me as to how I can get KDE to rebuild the menus?
    More likely the file /etc/xdg/menus/applications.menu is missing, unreadable or invalid. Get that file or change the value of XDG_CONFIG_DIRS to point to a path containing a valid 'menus/applications.menu'. That should solve the problem for all users.

  5. #5

    Default Re: Re : Rebuilding KDE menus

    Quote Originally Posted by gropiuskalle View Post
    plasma-desktop-appletsrc does not contain KMenu-entries, those are stored in ~/.config/menus/applications-kmenuedit.menu.
    Indeed. One good reason to get rid of this file (~/.config/menus/applications-kmenuedit.menu) first. Make sure you can see KDE default menus. Then customize the menus if you want.

  6. #6
    Join Date
    Jun 2008
    Location
    Norwich, UK
    Posts
    215

    Default Re: Rebuilding KDE menus (SOLVED - Sort of)

    Fudokai wrote:

    > After installing openSUSE 11.3 (retaining my old /home) and attempting to
    > upgrade to KDE 4.5, failing to get KDE to run, downgrading to 4.4 I've now
    > got nothing in the KDE Application menu.
    >
    > I've googled around and found ...
    > <code>
    > mv ~/.config/menus ~/.config/menus.SAV
    > kbuildsycoca4 --noincremental
    > </code>
    >
    > but I get fistfulls of errors (at least I assume they're errors) like ...
    >
    > kbuildsycoca4(19768) KBuildMimeTypeFactory::createEntry: Missing <comment>
    > field in "application/x-wine-extension-odcnewfile.xml"
    >
    > kbuildsycoca4(19768) KConfigGroup::readXdgListEntry: List entry Actions in
    > "ServiceMenus/krename_all_nonrec.desktop" is not compliant with XDG
    > standard (missing trailing semicolon).
    >
    > kbuildsycoca4(19768) VFolderMenu:ushDocInfo: Menu "applications.menu"
    > not found.
    > kbuildsycoca4(19768): "applications.menu" not found in
    > ("/home/alan/.config/menus/", "/etc/xdg/menus/")
    >
    > and I still have an empty applications menu :-(
    >
    > Can anybody enlighten me as to how I can get KDE to rebuild the menus?
    >


    Ok - it's not perfect but I managed to restore /etc/xdg_menus from a backup
    (gosh - a man with a backup!) and ran the kbuildsycoca and now I've got a
    set of menus. I've lost all the folder icons but at least I can find things
    again :-)

    --
    Alan

Posting Permissions

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