Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 11178  / 2 Years ago, thu, april 14, 2022, 4:27:05

I've added a file



/etc/xdg/menus/applications-merged/foo.menu


and the stuff in foo.menu all works in gnome. But the menu items didn't show up, even after rebooting.



I then tried adding a menu item "bogusmenu" using kmenuedit. After hitting Save in kmenuedit, bogusmenu appeared, and the menu item associated with foo.menu also showed up! So what's kmenuedit's secret updater code doing, and how can I call it from command line (specifically, an installation script)?



This is in Linux Educacional 4, which is based on Ubuntu 10.04 with KDE 4.4.5.



Some things which haven't worked:




  • Using xdg-desktop-menu, touching the files in /etc/xdg/menus, running kbuildsycoca.


More From » kubuntu

 Answers
2

OK, for me what worked was:



Take the applications-kmenuedit.menu file generated the first time you do a save inside KMenuEdit, clean up the "bogus" entry (or whatever change needed to get KMenuEdit to actually save a file there), and then copy that into either /etc/xdg/menus or ~/.config/menus. Magic file: bah!


[#43226] Friday, April 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
giccolla

Total Points: 161
Total Questions: 124
Total Answers: 117

Location: Aland Islands
Member since Wed, Nov 17, 2021
2 Years ago
giccolla questions
Sun, Oct 17, 21, 05:39, 3 Years ago
Mon, Aug 1, 22, 02:00, 2 Years ago
Sun, Nov 21, 21, 08:21, 2 Years ago
;