nlpsuge / gnome-shell-extension-another-window-session-manager

A Gnome shell extension to close open windows gracefully and save them as a session. The previous session can be restored at startup. Most importantly, it supports both X11 and Wayland!
https://extensions.gnome.org/extension/4709/another-window-session-manager/
GNU General Public License v3.0
141 stars 8 forks source link

GNOME 45 support #89

Closed yochananmarqos closed 10 months ago

yochananmarqos commented 1 year ago

There are breaking changes which will require a separate release for 45 and <=44:

See https://gjs.guide/extensions/upgrading/gnome-shell-45.html

nlpsuge commented 1 year ago

Thank you, will do.

sans-c commented 11 months ago

I'd like to ask if there is any progress on this. Gnome45 ist out since a few weeks now. Any chance there will be an update anytime soon or better look for alternatives?

nlpsuge commented 11 months ago

I'd like to ask if there is any progress on this. Gnome45 ist out since a few weeks now. Any chance there will be an update anytime soon or better look for alternatives?

Hi,

Sorry for the delay, no progress for now.

But I should have time to start to migrate it to Gnome 45 recently.

benne3333 commented 10 months ago

Would be great! One of my most important extensions :-)

nlpsuge commented 10 months ago

Hi,

I'm preparing to release a new version that supports for Gnome 45 (this PR) today.


Please note that due to gnome-shell 45 does not export EndSessionDialog, the flowing features do not work:

After this MR is merged, the above feature will be supported automatically based on the MR.

freddyw commented 10 months ago

Being doing some first testing, looking good so far. Thank you very much, this means I can upgrade my main (Fedora) laptop next Tuesday!!

g1bber1sh commented 10 months ago

works for me as well! thank you

nlpsuge commented 10 months ago

Hi,

I'm preparing to release a new version that supports for Gnome 45 (this PR) today.

Please note that due to gnome-shell 45 does not export EndSessionDialog, the flowing features do not work:

  • Restore previous apps and windows at startup . Workaround: I suggest to backup currentSession Using cp -r ~/.config/another-window-session-manager/currentSession ~/.config/another-window-session-manager/currentSession-bak before Log out/Reboot/Shutdown the computer, otherwise session files in currentSession will be removed automatically. Next time after logging in, rename the backup to currentSession Using mv ~/.config/another-window-session-manager/currentSession-bak/ ~/.config/another-window-session-manager/currentSession. And then run the following command to restore the previous session: 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>}"
  • Auto close session This feature is not working, so the original end session dialog of Gnome will be popped up.

After this MR is merged, the above feature will be supported automatically based on the MR.

It's still in review. I hope it can be approved today.

nlpsuge commented 10 months ago

The last review was rejected. I've submitted a fixed version and am awaiting approval, hoping it can be approved as soon as possible.

However, the main-gnome-45+ branch, which supports Gnome 45, is fine to use.