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?
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?
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.
~/.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
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.
Oh and you need to merge in the icons too. They're sitting in ~/.local/share/icons
.