Skip to content
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

Using this to restore a session after reboot? #1

Closed
vchernin opened this issue Jan 7, 2022 · 4 comments
Closed

Using this to restore a session after reboot? #1

vchernin opened this issue Jan 7, 2022 · 4 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@vchernin
Copy link

vchernin commented Jan 7, 2022

This is an awesome extension, in it's current state it is already rather useful. Thanks for working on this :)

For my use case, I find it would be helpful if the applications that were previously opened to be reopened after reboot.

Since the window positions are already remembered, in theory the missing piece is to 1) record all open windows before logging out and 2) somehow autostarting all the previously open apps at login. A hack to copy desktop files to ~/.config/autostart maybe?

I realize this is difficult because you can't distinguish windows from the application...

@khimaros khimaros added the enhancement New feature or request label Jan 7, 2022
@vchernin
Copy link
Author

vchernin commented Jan 7, 2022

One idea I realized while typing, perhaps Flatpak apps are easier to handle? Since they have a unique app id which Flatpak tracks (somewhere), and their desktop file should have the same app id?

@khimaros
Copy link
Owner

khimaros commented Jan 7, 2022

hi @vchernin thank you for the feature request.

this sounds like a really useful addition. my instinct is to say it may make sense to offer this functionality via a separate extension. i've been in contact with @nlpsuge who is working on https://github.com/nlpsuge/gnome-shell-extension-another-window-session-manager -- i see a potential future where their extension does session management and smart-auto-move handles window position recall.

right now another-window-session-manager also offers its own window position recall, so the extensions may battle with one another. it's possible that @nlpsuge's extension does everything you need. either way, i'm interested to hear about your experience.

@vchernin
Copy link
Author

vchernin commented Jan 7, 2022

Thanks for the quick response!

Yeah, I will try out that other extension. It does seems like there are advantages to it.

i see a potential future where their extension does session management and smart-auto-move handles window position recall.

Just from the readme I see that too. For example there are issues there that don't seem to exist here in my testing:

On Wayland, if a window is maximized along the left or right sides of the screen before closed, its size and position can't be restored. As a workaround, click move button () to restore their size and position.

@khimaros
Copy link
Owner

closing this issue as it is out of scope for this extension and is better handled by https://github.com/nlpsuge/gnome-shell-extension-another-window-session-manager

@nlpsuge and i will continue to collaborate on finding the right level of interop and division of responsibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants