Skip to content

Instantly share code, notes, and snippets.

@xnumad
Last active April 16, 2019 10:27
Show Gist options
  • Save xnumad/6e435b44edd4736c9439abd332beaf3e to your computer and use it in GitHub Desktop.
Save xnumad/6e435b44edd4736c9439abd332beaf3e to your computer and use it in GitHub Desktop.
KDE Plasma reset favorites

Problem

Favorite applications in the start/application menu are missing in KDE Plasma and you can't add any as they won't appear as favorites.

Solution

Troubleshoot by running kbuildsycoca5 --noincremental in a terminal to read the output and repeat until there is no error. The approaches to different error types are listed below.

1. File is missing

Copy it from /etc/xdg/menus/:

cp /etc/xdg/menus/<missingfilename> ~/.config/menus/<missingfilename>

e.g. if applications.menu is missing

cp /etc/xdg/menus/applications.menu ~/.config/menus/applications.menu

2. Parse error / Can't read a file

e.g. line 1 , col 1 : "unexpected end of file"

Remove the file with the rm command

e.g. if xdg-desktop-menu-dummy.menu encounters a parse error

rm -rf ~/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu

Info

Based on the last post on Apr 28, 2017 at https://forum.kde.org/viewtopic.php?f=289&t=140075

Feel free to comment! This was the only solution after digging through various solutions from different forums and their members! There has to be a better guide for this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment