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

Auto start saved session after reboot? #69

Open
alexdom opened this issue Apr 28, 2020 · 5 comments
Open

Auto start saved session after reboot? #69

alexdom opened this issue Apr 28, 2020 · 5 comments

Comments

@alexdom
Copy link

alexdom commented Apr 28, 2020

Is there any way to automate the last saved session start at system reboot? I couldn't find any info about that..

@johannesjo
Copy link
Owner

There are definitely ways to do this, but none integrated into the tool itself. This is maybe an option for the gnome shell extension and I am open to accepting and reviewing Pull Requests for such a feature. johannesjo/gnome-shell-extension-window-session-manager#17

@HearMeWhisper
Copy link

I'm working on a script that asks the user to restore or not, this is what i have so far:
#!/bin/sh if zenity --question --text="Restore Last Session?" --title="Restore?" --width=500 --height=200 then lwsm restore; fi

the script runs and works, but I cant get it to work on login yet, my script doesnt run when added to startup applications

@johannesjo
Copy link
Owner

@HearMeWhisper the reasion is probably that startup scripts are run in a different user to whom lwsm might not be available. You might want to check the exact location of lwsm via which lwsm and then use that path. You might also want to log the output of your script to a file, to make debugging this easier for you.

@HearMeWhisper
Copy link

got it to work, i was using nvm to instal and mnage node, but making a symlink from that binary to /etc/bin fixed it. now it asks me everytime i log in if i want to restore my windows. now to find a way to run the save script at logout/shutdown :)

@johannesjo
Copy link
Owner

I am glad that you were able to make this work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants