linux-window-session-manager
linux-window-session-manager copied to clipboard
Auto start saved session after reboot?
Is there any way to automate the last saved session start at system reboot? I couldn't find any info about that..
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. https://github.com/johannesjo/gnome-shell-extension-window-session-manager/issues/17
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
@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.
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 :)
I am glad that you were able to make this work :)