-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Auto restore the previous session at startup, etc. #67
Conversation
…ssion-while-logout
…oot. Part 2: Support drag and drop and other improvements.
…ssion-while-logout
…oot. Part 4: Add options and cleanup saved session files while windows/apps quit, etc
…oot. Part 5: 1. More support for apps that launched via command line. Now those apps states can also be restored. 2. Remove old session files after app is restored when restoring the previous session 3. When closing the current session via the Log Out/Restart/Power Off, always show closing dialog. 4. Fixes #59 Dragging windows becomes choppy when the extension is enabled. 5. Like 4, optimize the performance when restore the previous session on startup
…oot. Part 6: 1. Add an option under Preferences -> Restore sessions, Restore delay. 2. On wayland, disable Stash and restore. 3. Preferences UI stuff
…oot. Part 7: 1. Add TODOs 2. Tweak Preferences UI settings, 3. Install a .desktop file to `~/.config/autostart` while `Restore previous apps and windows at startup` is enabled 4. If there are no running apps, close current sesson immediately without user interaction
…ssion-while-logout # Conflicts: # README.md
Enable this feature through After you click the If the second button on the above dialog has After you click You can move it around in case it covers other windows. Please note that currently if this option is enabled, it modifies the Gnome Shell |
Here is the overview of Activate Then while startup, AWSM will read the previous saved session configs to launch and restore apps and states. The session configs are saved in the path You can use the below command to test this feature. gdbus call --session --dest org.gnome.Shell.Extensions.awsm --object-path /org/gnome/Shell/Extensions/awsm --method org.gnome.Shell.Extensions.awsm.Autostart.RestorePreviousSession "{'removeAfterRestore': <false>}" |
…oot. Part 9. 1. Change currentSession location 2. 2. Add RestorePreviousSessionWithArgs 3. Meta.restart() only has one paramter on Gnome Shell versions less than 43. etc..
aa1e0d0
to
a50f1e0
Compare
c8ae8dc
to
5a97eb7
Compare
Hey in which version is this update a part of? Is it pushed to extensions.gnome.org? I have the latest version from the GNOME store (how do I find out which version I have installed?) but I don't see the "Auto Close Session" option under the Close Windows tab of settings. |
No, I've not pushed it to extensions.gnome.org. This PR is work-in-progress. Two blocking issues remain:
|
…oot. Part 10. 1. Use `app.quit` to quit an app if it is available and the app has only one window. 2. Ignore the `null` folder under `currentSession` when restoring previous session 3. Check the process exit state after all windows are closed automatically. Currently, only `Microsoft Edge` has this check, because if the system is logged out immediately, it might be opened with a `Microsoft Edge Closed Unexpectedly` dialog.
The first issue has been fixed. The second not, I can't reproduce it myself, but I don't think it only happens occasionally. The possibly upstream issue: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1868 |
Includes:
Log Out/Restart/Power Off
(fixes Restore session after startup #9)Stash and restore
underRestore sessions
is renamed toRestore windows states after Gnome Shell restarts
and it will be disabled on Wayland.