Force dolphin to revert to configured settings every open

How can I force Dolphin to stop retaining the last open config?

I want Dolphin to open fresh every single time with the following settings:

List mode with details

Folders at top

Sorted ascending for both the folder and file section

No matter what has happened on previous opens, I want it to open every time with those settings.

i think the only way to achieve this would be to run a script that restores ~/.config/dolphinrc to a prior save before you launch dolphin.

set it up how you want to see it and then make a copy of that file.

next time you want to launch dolphin, overwrite whatever the current file is with your saved file and it will always come up the same.

alternatively, if you don’t mind the factory defaults, then just delete it every time you close dolphin and a factory defaults copy will be recreated.

That may not be the complete solution. Just as an initial test, I configured dolphin the way I want it. Closed and reopened to make sure it is keeping it. Then I closed again, made dolphinrc view only, then re-opened dolphin. It complained that the file could not be changed but opened up. I made a config change to something I didnt want it to retain, then closed and re-opened dolphin but it still had the unwanted change. So even with that file set to view only, it is keeping config changes.

did the file change permissions back to write?

if not then it could be that the change is stored in another file or you are getting interference from ~/.cache/dolphin/

i don’t think preventing dolphin from saving your changes is the way to go for this goal.

your best approach would seem to be a snapshot scheme to capture all the relevant dolphin files when you have it they way you like it, then restore that snapshot each time you open dolphin (discarding any changes saved in the interim).

this is a list (complete?) of all the files dolphin touches when it’s being used, so these might all need to be managed by your snapshot process.

    ~/.config/dolphinrc
    ~/.config/session/dolphin_dolphin_dolphin
    ~/.local/state/dolphinstaterc
    ~/.local/share/kxmlgui5/dolphin/
    ~/.cache/dolphin/

A possible solution is to:

pick “Remember display style for each folder”.

And pick a default start folder, that you don’t change the view properties for.