Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

After installing one application that put its launcher in the wrong menu category I decided to relocate it to its correct category. To this effect I edited the Applications menu (right click on it -> Properties -> Edit menu). After making little changes to the menu its entries disappeared and now looks like shown in the following image:

No entries in the main XFCE menu

I have looked at the instructions in the XFCE Wiki and I'm supposed to do:

# cp ~/.cache/xfce4/desktop/menu-cache-name-of-the-generated-file.xml ~/.config/xfce4/desktop/menu2.xml
# cd ~/.config/xfce4/desktop/
# cat menu.xml > menu3.xml
# cat menu2.xml >> menu3.xml
# mv menu.xml menu.orig.xml
# mv menu3.xml menu.xml

but there's no ~/.cache/xfce4/desktop/ directory in my computer.

What can I do to restore the main applications menu?

PS: I'm using Ubuntu 10.10 Maverick Merkat with XFCE.

share|improve this question
    
does this help? if yes, I'l post it as an answer –  Philomath Jul 18 '11 at 23:46
    
OK, I read that information but deals with lost panels and main menu. In my case the main XFCE menu is there but without any child elements (entries). –  Sergio Jul 19 '11 at 10:26
    
Please don't post answer data in the question. Instead add an answer of your own below and after the timeout if nothing better turns up, accept it as correct. –  Caleb Jul 19 '11 at 11:20
    
@Caleb: Done!!! –  Sergio Jul 19 '11 at 11:46
add comment

2 Answers 2

This should restore the menu to your panel:

  1. Right Click on your panel
  2. Select Add New items from the pull up list
  3. Scroll down to the bottom of the resultant dialog
  4. Click on Xfce Menu
  5. Click on the Add Button

and, as per the link provided by Philomath, you can elect to change the title to "Applications."

share|improve this answer
    
The problem is that I do have the Applications menu, but with no entries. Even if I add a new one, it behaves the same. :-( –  Sergio Jul 19 '11 at 0:11
2  
Please edit your post to reflect the true nature of your issue. You can always manually edit the menu like so: xubuntu.wordpress.com/2006/07/12/manually-edit-the-xfce-menu –  jasonwryan Jul 19 '11 at 0:16
add comment

I finally found a solution by myself. Reading here and there I found some promessing xml files in the /etc/xdg/menus directory. From there I copied the xfce-applications.menu file to ~/.config/xfce4/desktop/menu.xml and edited the main application menu in my desktop to take its entries from that file (right clicked on the main menu -> Properties -> Use custom menu file). Everything came back to normal.

I would like to thank everybody (specially those who provided some hints) for their help.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.