Use new GTK session save/restore API#840
Draft
DaPigGuy wants to merge 5 commits intotchx84:masterfrom
Draft
Conversation
5d2f97d to
15cd49d
Compare
Owner
|
@DaPigGuy thanks for working on this, I will take a look this week and let's merge it when it's stable |
15cd49d to
587e5cb
Compare
tchx84
requested changes
Jan 19, 2026
| this._window.showApplication(selectedAppId); | ||
| } | ||
|
|
||
| /* Only restore the search entry for crash recover or session restore */ |
Owner
There was a problem hiding this comment.
Let's leave this search-entry restore behavior out for now, and focus on the existing behaviors. Making this PR simple as possible.
587e5cb to
290381f
Compare
Author
|
Looks like this won't be happening for GNOME 50 😅 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GTK is now able to handle saving/restoring sessions. It automatically handles restoring window size/fullscreen/maximized state. On Wayland, it integrates with the (currently experimental) session management protocol to restore the window position, which is probably the biggest motivator for this, although this is currently not ready when running under Flatpak? GTK does auto saves every 15s and on app closing.
See for more info: GNOME initiative
API is not yet stable, so let's wait til GNOME 50