Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently did a reinstall with a new profile and I've just copied back over my Wine install. Everything works but I don't have menus for any of it.

Does anybody know how to selectively copy back menu items from an old installation?

share|improve this question
up vote 5 down vote accepted

The short answer is a combination of ~/.config/menus and ~/.local/share/applications. The first stores the menu configuration while the second stores the .desktop shortcut files that the menu displays.

  1. Start with the desktop files. Wine (thankfully) creates its own subdirectory at ~/.local/share/applications/wine so you can copy that straight over. For other applications, you might have to be a bit more selective about things.

This unfortunately doesn't make the launchers trusted. The quickest way I've found to do that is by running this little hack:

find ~/.local/share/applications -name '*.desktop' | sed 's, ,\\&,g' | xargs sudo chmod ugo+rx
  1. Then copy over the relevant menu configs and reload the menus. Unity probably needs unity --replace and if you're using panels as I am, killall gnome-panel does the trick.

  2. Oh and you need to merge in the icons too. They're sitting in ~/.local/share/icons.

share|improve this answer

The applications shown in your Dash are located in /usr/share/applications. The files located there are "desktop configuration files". To add an application from wine or any other location, just copy one of the existing applications and paste it in the /usr/share/applications folder. Now you can right click and choose properties.

Make sure the application you want to add to the Dash has it's property window open for easy copy and pasting into the copied app's properties window (you're replacing the file location to reflect the application's path to be added to Dash). Change the description if you want and click on the icon in the properties window to replace it with one for the application your adding. When you're finished tap enter and close the properties window. You should now have it in the Dash.


You can open a terminal window and type sudo nautilus press and press enter to open a file manager window with root privileges so you can make the copy and changes to the properties. Be sure to close out of the window when you're finished.

share|improve this answer
I guess it's easier to just down-vote and not leave a comment explaining why? Maybe you could help me or others by explaining you vote. – Jeremy Jared Mar 11 '12 at 13:25

Your Answer


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.