6 ms·
Well, isn't there an option to just do that also on reboot?
by nik736 10y ago
Well, isn't there an option to just do that also on reboot?
- creshal 10y agoSure, if you don't mind diligently saving all documents on shutdown, or your browser loading every single tab anew after starting, … Applications are stateful. Sleeping keeps all that state.
- RotsiserMho 10y agoHave you ever used OS X? Application state can be preserved and restored across reboots. Most apps do this automatically. Actually I haven't encountered one that doesn't.
- creshal 10y agoI do occasionally, I can't say I noticed it – but that's probably because I spend 99% of my time in a terminal.
- randallsquared 10y agoiTerm2 keeps state in this way for all my open tabs, except that it does a new login shell, so my history doesn't stay consistent: they all get the same history after a restart. Still, not having to open all the terminals I use for different things and resize and position them is a win. It's the small things. :)
- tedmiston 10y agoiTerm2 v3 beta doesn't keep tab state across relaunch for me. The tabs come back but on a fresh command prompt without stdout from the previous session. For me it's no better than starting fresh.
- randallsquared 10y agoI'm using 3.0.5. There's a preference "Use System Window Restoration Setting" which may be helpful.
- tedmiston 10y agoPerhaps I'm doing something wrong, but this is my experience on 3.0.7 - https://news.ycombinator.com/item?id=12282280 https://news.ycombinator.com/item?id=12282280.
- RotsiserMho 10y agoWhich shell are you using? With fish I find that it's history is somewhat context sensitive based on the present directory. Because of this I've found myself less frustrated when working with the history across multiple tabs.
- philsnow 10y agoI run almost exactly three things on this MBP: screen (shells), emacs, and Chrome. - My nested screen sessions with a ton of shells doing things all over the place don't get restored on reboot - My emacs state doesn't get restored on reboot - Chrome reloads all the pages from the network instead of just serializing its entire state and restoring it on reboot (All of the above are true on linux too.)
- tedmiston 10y agoI've heard it's possible to persist some of the state of shell sessions across reboot using tmux + the resurrect plugin.
- RotsiserMho 10y agoYou might check out the latest version of iTerm2. I think it supports saving sessions (including tmux?) over a reboot.
- egypturnash 10y agoI use OSX and I'd much rather sleep than reboot. Lots of productivity programs will lose state - offhand the Adobe suite comes to mind, for instance. And if you have a bunch of tabs open in a web browser it takes forever for them to reload. If you use multiple desktops there's no guarantee of windows popping up on the same desktop after a reboot, even with Apple apps. Waking the machine from sleep takes seconds; rebooting with stored state takes minutes.
- tedmiston 10y agoCasual plug for the Pinboard tabs sets feature (https://blog.pinboard.in/2011/04/new_save_tabs_feature/ https://blog.pinboard.in/2011/04/new_save_tabs_feature/) or OneTab (https://www.one-tab.com https://www.one-tab.com).
- barrkel 10y agoMost of my post-startup routine in Linux is doing things like re-seeding my development database after the ramdisk has been mounted, starting up screen with database clients, and booting up the local servers (the ones that make up our application) all connected to one another - a single script, but still takes a few seconds to get going and can only happen after the database on the ramdisk has been configured. Application state for all three GUI apps I use is pretty much restored on every platform. Thing is, there are only three of them.
- wlesieutre 10y agoSince 10.7, application state is automatically saved on log out. Some 3rd party software took longer to properly support it, but 5 years has gotten everything up to speed. Can be disabled while logging out (untick the checkbox) or holding shift while logging in.
- tedmiston 10y agoMostly true, but not completely. There are still important state details that aren't preserved, like how far down the page I've scrolled in an article I'm reading, a form in progress, or the text that I have highlighted in a tab. How about my active terminal sessions in iTerm? It would be a joy if that state preserved across restarts.
- RotsiserMho 10y agoI think the latest version of iTerm2 (3+) supports this actually.
- tedmiston 10y agoKinda. I just tried it on 3.0.7. For example, in tab #1, I cd and run a bash script to start a web server process. In tab #2, I split it into two panes, and in #1 run workon to start a virtual environment then start the Python REPL. In pane #2, I run top. After quitting and restarting, tab #1 returns to the proper directory but with no output. Pane #1 shows previous output and returns the proper directory but without the virtual environment activated. Pane #2 does the same. History seems to be merged across the three which is a bit confusing as well.
- tedmiston 10y agoI just want to take a moment here to applaud Sublime Text and its creator. I've kept unsaved documents in it for several days before, across app relaunch, system restart, etc, and even in the very rare times that it does crash, it has never lost any text for me. I wish all programs were built so well.