GNOME Bugzilla – Bug 777055
Epiphany does not remember window size on startup
Last modified: 2017-01-24 00:12:30 UTC
Epiphany from master does not set the windows size from last session. It works on Epiphany 3.22.4.
Do you have the "remember previous tabs at startup" preference unchecked? It works for me, but I have a bunch of tabs saved always. I think what might be wrong here is the window state is only saved if you have some tab saved in your session. (Note: you'll be interested in completely unrelated bug #755193 comment 9 and 10)
You're right, it works if I enable the "remember previous tabs at startup" preference. Thank you for the heads up, it's great that multiple filters made they way back into epiphany!
The following fix has been pushed: 27593bb Store last-closed window size in GSettings
Created attachment 344075 [details] [review] Store last-closed window size in GSettings This way we can restore the window size even if there is no saved session state, whether because the restore session feature is disabled, or simply if the user closed all tabs with Ctrl+W. This should never cause window size to be forgotten. Note that this is not quite best-practice for dealing with window states. That would be https://wiki.gnome.org/HowDoI/SaveWindowState. But this works, and the recommendation there does not work, so let's do this. Also note that it's a bit odd that it's the last-closed window that determines size. This is what gedit does, and gedit was the first app I tested, so it seems reasonable. It's only really noticeable if you resize one window to some silly size while having another window at reasonable size, and most users will never have multiple windows, and most users will never disable session restoration anyway, so whatever.