View previous topic :: View next topic |
Author |
Message |
Vrenn Guru
Joined: 15 Dec 2004 Posts: 324
|
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: 446
|
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: 324
|
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: 446
|
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: 446
|
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: 324
|
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 |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 324
|
Posted: Sat Dec 21, 2024 4:30 pm Post subject: |
|
|
rm -rv ~/.cache/* made no change, sadly, mostly I still get falkon and kate as default. (but on the good side kdepim survived )
xdg-mime query default html/* stays on firefox. Always (but is not choosen if an url is selected in an application like kmail) _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 446
|
Posted: Sat Dec 21, 2024 5:22 pm Post subject: |
|
|
You did not specify what steps you have taken to resolve the situation. Did you try manually
setting firefox as the default:
Code: | xdg-mime default firefox.desktop html/* |
What was the result after a reboot?
Are you starting KDE Plasma with an empty session or do you use a saved session which is being
restored when you log in.
If you restore a saved session, turn it off and set it to log into an empty session to simplify things
for troubleshooting.
DId you try cleaning up your default programs in System Settings>Default Applications>File Associations,
deleting apps from the Application Preference Order list which you do not prefer?
Use the search box to search for 'html' and check all of the entries in the list of results.
Leave only firefox, for example, for File type application/x-extension-html. Delete falkon from the list.
If you wanted falkon back in the list it can be easily added at any time
when you click on a the file and select "open with". You need to save your changes by hitting 'apply
in the lower right corner.
If all of that fails, then I tend to wonder if some other mechanism is overwriting your changes
or you have accidentally changed some permissions in your home folder. |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 324
|
Posted: Sat Dec 21, 2024 7:30 pm Post subject: |
|
|
Thanks for the long (with many points too look ) anwer.
To make things read easy I'll copy the list:
* You did not specify what steps you have taken to resolve the situation. Did you try manually setting firefox as the default: xdg-mime default firefox.desktop html/ -- yes
* What was the result after a reboot? -- falkon default again in Plasma-settings
* Are you starting KDE Plasma with an empty session or do you use a saved session which is being restored when you log in. -- always start with empty==new session, I like it that way
* If you restore a saved session, turn it off and set it to log into an empty session to simplify things for troubleshooting.-- set on all machines , always
* DId you try cleaning up your default programs in System Settings>Default Applications>File Associations,
deleting apps from the Application Preference Order list which you do not prefer? --delete? no just changed orders I think
* Use the search box to search for 'html' and check all of the entries in the list of results. Leave only firefox, for example, for File type application/x-extension-html. Delete falkon from the list.If you wanted falkon back in the list it can be easily added at any time when you click on a the file and select "open with". You need to save your changes by hitting 'apply in the lower right corner. -- will try now!
* If all of that fails, then I tend to wonder if some other mechanism is overwriting your changes or you have accidentally changed some permissions in your home folder. -- yep, it's a journey with wonders. No manipulation on home-folder yet of which I know. _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 324
|
Posted: Sat Dec 21, 2024 7:50 pm Post subject: |
|
|
Tested to delete all other programs other than firefox in every enty that is assosiated with html in any way.
After restart the lists where refilled.... (and falkon on top again) _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
|