Bug 458261 - Dolphin doesn't remember size
Summary: Dolphin doesn't remember size
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-24 16:29 UTC by tantalising
Modified: 2022-09-12 13:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.99


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tantalising 2022-08-24 16:29:19 UTC
SUMMARY
Dolphin does not remember last opened size

STEPS TO REPRODUCE
1.  Open dolphin
2.  Resize to a size other than default
3.  close dolphin
4. Reopen dolphin

OBSERVED RESULT
It opens with the default size

EXPECTED RESULT
It should open with the last used size

Linux/KDE Plasma:  kde neon unstable
KDE Plasma Version:  5.25.80
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
dolphin version 22.11.70 (not found in drop down menu provided). I think it used to work 
in the past
Comment 1 Nate Graham 2022-08-30 20:37:01 UTC
Works for me with current git master on Wayland.

Are you using the Wayland session, or X11? If it's the X11 session, can you try Wayland and see if it's working there?
Comment 2 tantalising 2022-08-31 18:23:20 UTC
(In reply to Nate Graham from comment #1)
> Works for me with current git master on Wayland.
> 
> Are you using the Wayland session, or X11? If it's the X11 session, can you
> try Wayland and see if it's working there?

Not working on wayland as well. Even worse, wayland is laggy and blur doesn't work as well.
Comment 3 tantalising 2022-08-31 18:24:23 UTC
By the way I never changed any setting in dolphin and there is no window rules in my system.
Comment 4 Nate Graham 2022-09-01 14:36:46 UTC
I'm on Wayland and I cannot reproduce the issue, but I do notice that the dolphinrc file doesn't get updated with the latest window size after the app closes. Despite this, its window size is remembered anyway, so I'm confused
Comment 5 Nate Graham 2022-09-01 14:39:28 UTC
Oh, the window state is stored in ~/.local/share/dolphin/dolphinstaterc nowadays. Nice.

Can you open that file in Kate, open Dolphin, resize its window, quit Dolphin, and go back to Kate? See if anything changed.
Comment 6 tantalising 2022-09-01 15:15:39 UTC
(In reply to Nate Graham from comment #5)
> Oh, the window state is stored in ~/.local/share/dolphin/dolphinstaterc
> nowadays. Nice.
> 
> Can you open that file in Kate, open Dolphin, resize its window, quit
> Dolphin, and go back to Kate? See if anything changed.

Every time I open or close dolphin kate says the file is deleted. After closing the file and reopening it the contents always remain same.
Comment 7 Nate Graham 2022-09-01 16:20:25 UTC
Ok, so that's the problem.

Is that file not writable by your user, maybe?
Comment 8 tantalising 2022-09-01 16:25:29 UTC
(In reply to Nate Graham from comment #7)
> Ok, so that's the problem.
> 
> Is that file not writable by your user, maybe?

It is writable. The permission is 0600
Comment 9 Oliver Beard 2022-09-02 00:29:06 UTC
I can reproduce this by closing the window with ALT+F4. If the window is closed normally, by pressing the close button, the window size is saved.
Comment 10 Nate Graham 2022-09-09 17:05:28 UTC
Cannot reproduce that :/
Comment 11 tantalising 2022-09-09 17:07:35 UTC
I want to also mention that not only dolphin but some other kde apps like kate also behaving like this. Is there any possibility that something is wrong on my system?
Comment 12 Nate Graham 2022-09-09 17:08:58 UTC
No, there is definitely *something* wrong here as I was on X11 recently and managed to reproduce similar issues. Not exactly this one, but similar ones. https://invent.kde.org/frameworks/kconfig/-/merge_requests/129 may fix it. Re-testing it is on my to-do list.

Would you be able to test it and see if it helps for you?
Comment 13 tantalising 2022-09-09 17:31:13 UTC
(In reply to Nate Graham from comment #12)
> No, there is definitely *something* wrong here as I was on X11 recently and
> managed to reproduce similar issues. Not exactly this one, but similar ones.
> https://invent.kde.org/frameworks/kconfig/-/merge_requests/129 may fix it.
> Re-testing it is on my to-do list.
> 
> Would you be able to test it and see if it helps for you?

Unfortuantely the mr does not work as well. One thing I have noticed though (with or without the mr applied) that if I resize the application using my left side monitor, then the size persists, but window does not restore to that monitor, instead opens on the primary monitor.
Comment 14 Nate Graham 2022-09-12 13:33:31 UTC
Turns out this was a bug in kxmlgui which should be fixed by https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/127.