SUMMARY Sometimes after installing or uninstalling applications, the Plasma application menu does not refresh automatically. Newly installed applications may be missing from their categories (though they are searchable), and removed applications may remain listed. Running kbuildsycoca6 --noincremental or re-logging in always fixes the issue. STEPS TO REPRODUCE 1. Install an application (either a native package or a Flatpak), for example: sudo pacman -S obs-studio or flatpak install flathub com.obsproject.Studio 2. Open the Application Menu and browse to its category (e.g. Multimedia). Sometimes the new app appears immediately, but other times it does not. 3. If missing, run: kbuildsycoca6 --noincremental The app appears after the cache rebuild. 4. Occasionally, uninstalled applications also remain visible until the cache rebuild. OBSERVED RESULT The application menu sometimes fails to refresh, showing outdated entries until KSycoca is manually rebuilt or the session is restarted. EXPECTED RESULT The application menu should always update automatically after installing or removing applications. SOFTWARE/OS VERSIONS KDE Plasma Version: 6.5.1 KDE Frameworks Version: 6.19.0 Qt Version: 6.10.0
Thanks for the bug report. I'm not able to reproduce this on Plasma built from git-master. After installing the OBS flatpak, it was immediately available in Application Menu -> Multimedia. After removing, it is removed from the menu. I had uninstalled and reinstalled it 5 times. I'm also unable to reproduce on Fedora 42 with Plasma 6.5.1 Given that this is intermittent, I'll leave this open so others can try to reproduce
I've also noticed that sometimes newly installed applications are missing an icon. Restarting Plasma also fixed this. Not sure if it's the same bug or not.
Created attachment 186781 [details] Screenshot of Bottles missing an icon
Yeah, this one is going to be some super weird issue. We'll need steps to reproduce so we can investigate and fix it. Can you do some troubleshooting? For example, does it happen in a new clean user account on the same computer?
Yes, it does happen in a fresh user account. I tried reproducing the bug by installing different applications, but it doesn't seem to depend on the specific apps. The same applications may or may not appear in the menu, it seems random. When they don't appear, reinstalling them, restarting Plasma, or manually running kbuildsycoca6 makes them show up in the menu.
Created attachment 187532 [details] Script to reproduce the issue I created a script to reproduce the issue more easily. Steps to reproduce the issue: 1. Install any valid desktop entry to `$HOME/.local/share/applications` 2. Ensure the file does not have duplicates in `/usr/share/applications` 3. Modify the `DESKTOP_ENTRY` variable in the script to point to your file 4. Run the script 5. While the script is running, try to locate the app in its category in the application menu (but don't search for the app by name) 6. After checking, close the application menu (it doesn't refresh while open) As the script renames the .desktop file, the entry should disappear from the menu when the file's suffix is changed to .bak and reappear when it changes back to .desktop. However, sometimes the menu does not update as expected, and the app remains listed when it should disappear, or vice versa.