View previous topic :: View next topic |
Author |
Message |
Vrenn Guru
Joined: 15 Dec 2004 Posts: 321
|
Posted: Tue Nov 26, 2024 7:55 pm Post subject: Plasma 6.1.5 resetts default apps after every login |
|
|
Dear Gentoo experts!
Lately I have a strange behaviour, appeared on both my active used gentoo-machines.
In the Gentoo Settings you can declare the default apps like firefox for web-browsing and vlc for video, kwrite for txt.
Now after every login links in kmail, discord, matrix... are opened in falkon , videos in mpv and text in kate.
Nothing against mpv but firefox not used as default browser is very annoying.
You can set them as standard apps in kde-setting, but after restart it is on falkon and mpv again.
Does anybody have a cluie where to start logging for the source of this behaviour? _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 434
|
Posted: Tue Nov 26, 2024 9:21 pm Post subject: |
|
|
I will not claim to be an expert on this subject by any means. Those defaults apps are, I believe, stored in ~/.config/mimeapps.list .
As a precaution, I would make sure there is not a conflicting hidden config mimeapps file in your home directory (unlikely.)
You could monitor the file for changes to see what is overwriting it.
These defaults can also be managed, I believe, independent of your desktop choice using xdg-mime (Use 'man xdg-mime' or 'xdg-mime --manual' for additional info.)
You can also use it to query the default mimetypes:
Code: | xdg-mime query default html/* |
Which for me returns:
Code: | firefox-bin.desktop
|
You can use it to manually set Firefox as the default for html or other file types:
Code: | xdg-mime default firefox.desktop html/* |
That brings into question if there is an xdg service not running or relevant xdg package missing, but again I am not well versed in this area so I cannot say for sure. It is simply a place I would think to look if you continue to have these issues. Hopefully, you can track down what is overriding or overwriting your preferred options.
To eliminate programs referencing a stale mime cache, I would also delete everything in your cache (preferably from outside the KDE plasma session/when not running a plasma session):
Then login to to Plasma session to see if this has any effect. |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 321
|
Posted: Tue Nov 26, 2024 9:53 pm Post subject: |
|
|
Thanks for your answer!
Now I have confirmed, that .config/mimeapps.list is exactly overwritten on login, not sure by whom, but I am on it.
Actually on my last test firefox was kept as default browser and kwrite as editor but mpv changed to Dragonplayer...
I will try resetting parts of .cache in the next days but fear of deleting akonadi-cache as this always makes big headages.
Running xdg prozesses are
xdg-desktop-portal-kde
xdg-desktop-portal
xdg-document-portal
xdg-permission-store
xdg-dbus-proxy
Thank you for the tools, I'll will look into them! _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 434
|
Posted: Tue Nov 26, 2024 10:14 pm Post subject: |
|
|
You could always move everything over to different backup folder and then copy your akonadi files back or delete everything but akonadi related files, fyi. I don't use indexing and I have it disabled so I never considered the implications of that. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 434
|
Posted: Tue Nov 26, 2024 10:38 pm Post subject: |
|
|
I assumed reading your initial post that you can visibly see in System Settings>Default Applications that your settings for the default applications are actually different than what you set them to? I realize now that was an assumption on my part
You may want to also check System Settings > File Associations to make sure that the correct app is set to open links, Firefox for application/x-extension-html for example. You can move it to the top of the list, move Falkon to the bottom of the list, or delete Falkon from the list of applications for that file type altogether if you choose.
There is a search function there that you can use to search for file types. |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 321
|
Posted: Wed Nov 27, 2024 6:39 pm Post subject: |
|
|
Good advice: Look into the File Associations and yes, firefox wasn't on the html-files per default-top. But only on one machine and kwrite was on txt always and VLC was on mp4 always...
let's see how it is ongoing with some deletions in the ~/.cache. _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
|