Skip to content

Instantly share code, notes, and snippets.

@bignall
bignall / dont-lose-konsole-terminal-sessions-on-reboot.md
Last active July 12, 2023 12:22 — forked from bguiz/dont-lose-gnome-terminal-sessions-on-reboot.md
Ensures that you don't lose your konsole sessions when you crash/ reboot Linux

Usage

  • Save the two files below. I put them in '~/.scripts'
  • Modify the configuration in konsole-watcher.sh to your liking
  • Modify the location of konsole-watcher.sh in konsole-watcher-autostart.sh if you chose to put it somewhere besides ~/.scripts
  • Create the directory ~/.konsole (or other location you chose for the save file)
  • Create a symlink to konsole-watcher-autostart.sh in '~/.config/autostart-scripts
  • or open System Settings > Startup and Shutdown and add a script to the Script Files (it does the same thing as creating the symlink)
  • You might want to add a menu entry as well in case KDE autostart doesn't work for some reason

Keybase proof

I hereby claim:

  • I am bignall on github.
  • I am bignall (https://keybase.io/bignall) on keybase.
  • I have a public key whose fingerprint is 9079 C9B3 F046 ED55 D52F 675E E282 DF60 240F 75C8

To claim this, I am signing this object: