Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 5671  / 2 Years ago, sun, november 6, 2022, 6:21:18

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?


More From » wine

 Answers
2

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.



[#39909] Tuesday, November 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
umplegitimat

Total Points: 137
Total Questions: 126
Total Answers: 118

Location: Saint Pierre and Miquelon
Member since Sat, Aug 21, 2021
3 Years ago
umplegitimat questions
;