You are not logged in.
I use Kmail, i3. I have KDE installed but don't normally use it.
Since a recent update (around the time Plasma 6 came out), Kmail forgot all file associations. When I try to open an attached file, I get the box for choosing a program, even if it's a well known type like PDF. Other programs, like Firefox and Pcmanfm still know the default program for PDF, so it seems a problem with Kmail specifically (and perhaps other KDE apps?). When I get the dialog, it's always empty, I have to type in the full path of the program I want. Even if I check "Remember association", it does not remember and keeps asking me. Even for just clicking HTML links, I get this "choose application" dialog.
What's going on? Anyone experience a similar problem? How can I fix it?
Offline
Offline
After reading those link threads, I got the associations back by running:
XDG_MENU_PREFIX=plasma- kbuildsycoca6
A lot of other places say to add --noincremental, but for me it worked without that.
It looks like the problem /etc/xdg/menus/plasma-applications.menu. This used to be /etc/xdg/menus/applications.menu but plasma decided to rename it and then have the prefix in an environment variable. I guess my i3 session wasn't setting it correctly.
Last edited by lfitzgerald (2024-07-09 15:45:39)
Offline
I still need help with the *default programs in Kmail*, though.
After doing the above fix, Kmail can now see the programs in the list, but it still asks me which one to use. So at least I don't have to type the command of the program, I can pick it from the list, but I still have to do so every time. Even if I check the "remember this default" box in kmail, it still continues to ask me.
I also tried to symlink applications.menu to plasma-applications.menu and starting Kmail with `XDG_MENU_PREFIX=plasma- kmail`. But it didn't help.
Strangely, dolphin doesn't have this problem. When I double click on the same type of file in dolphin, it just opens.
So how do I fix the Kmail default programs?
Last edited by lfitzgerald (2024-07-09 15:52:45)
Offline