What could cause Application Launcher corruption, and how to go about it?

Hello,

On an Arch-based Linux installation (CachyOS) with KDE Plasma 6.5, while running a Proton VPN client (not sure if it had anything to do with the problem, but I was connected while this happened - at first I thought it might be something encryption-related, but I cannot tell with certainty), I changed the panel position a few times - bottom to sides, then back to bottom; this caused the Application Launcher to be resized. I was able to restore it to normal by switching to Application Menu and then back, but then the browser’s icon disappeared from the panel, the placeholder returned an ‘Unknown application folder’ message when clicked; also, a few games installed through Lutris and Wine Installer had their shortcuts gone from the Launcher, although desktop shortcuts were in place and functioning. It seems the whole ~/.local/share/applications folder was wiped, especially if this is where Lutris places the Launcher shortcuts for the games it installs.

Thus, if anyone could suggest

  1. What happened
  2. Why it happened, and
  3. What to do to prevent it from re-occurring,

I would be indebted.

Should any further information be necessary, please let me know, and thanks.

hi, welcome.

you can try running kbuildsycoca6 or just `or kbuildsycoca to see if it can repair anything.

what happens if you create a new user, does the launcher / menu still behave incorrectly?

1 Like

Thanks for the welcome, and the suggestions.

What do these commands do, exactly, is there a chance they might wipe something more?

Also, I haven’t tried creating a new user, might give it a try, but - since this was (so far, at least) a one-off thing, what would be the chances of it re-occurring under one?

  1. A new USER is the acid test to prove it’s your fault (at least, your data and not the system).
  2. Snapshots and regular incremental backups are your safety net… I generally have a weekly, a couple of daily, and a couple of hourly snapshots via back-in-time on my HDD.

Unless you can figure it out from the log, then the general fix might be to rename your ~/.config and see how that goes, then continue from there (moving things back until you get the issue back).

kbuildsycoca will simply rebuild your menu, it does not change anything, but it might wash out any corrupted data from the cache.

you can usually learn more about any command by typing --help after it.

the menu can easily get corrupted by actions you take in the editor which can sometimes cause it to crash … usually dragging items across multiple categories will do it, so i just use cut/paste instead.

1 Like

I don’t imagine users like the terms “your fault”. I find “A new user is a good troubleshooting method to determine if it is a configuration issue local to your user account” to be far less confronting :smiley:

2 Likes

Running kbuildsycoca6 doesn’t seem to change anything I can see, indeed, I had already carried out the Launcher→Menu→Launcher switching and sort of restored the folder entries.

I do have Snapper installed, and have snapshots, but what I am mainly trying to do is sort out what happened and why to avoid it re-occurring, as noted in the first post.

Moving the panel around one more time still resizes the the App Launcher, although this time the ~/.local/share/applications folder seems untouched. Could something I did in the editor delete its contents?

Also, would there be any logs I could look at/post here, and if so, where would they be?

Thanks again.

You didn’t try a new USER first?

you can use journalctl to examine your logs around the time of the incidient, but i don’t know if anything would have been recorded.

my advice is keep making those snapshots so you can always restore to a working system.

when using the application editor, save often and don’t drag items around, use cut/paste.

unless it’s something you can easily reproduce, filing a bug report is likely not going to help.

Well, no - I wanted to see what happens in the same environment if I repeat the steps.

Ok - say that I create a new user, what do I do with it? Drag the panel around again to see if it does the same? It shouldn’t be a problem to do so, come to think of it…

Well, maybe it is not certain, but I suppose it wouldn’t hurt to look…

Snapshots I do make, and even went back to one after the missing entries, but the problem persisted.

I do wonder if it could be something I did with the editor, I am not 100% certain if I used it while I was trying to resize the launcher.