this post was submitted on 20 Nov 2023
179 points (93.7% liked)

Technology

34769 readers
196 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 11 months ago (1 children)

This is incorrect..ish. Windows, yes even 10, has had a feature for a while now called Automatic Restart Sign-on (ARSO). You can enable this feature by going to Settings > Accounts > Sign in options > "Automatically save my restartable apps and restart them when I sign back in".

After enabling it, a reboot will restore.. some apps (hence the 'ish'), these apps being mostly Microsoft apps (Edge, Word, Outlook, Notepad etc) + some third-party apps (I know Firefox gets restored, not sure about others).

You can also use the shutdown /g command to test this (after enabling ARSO):

/g Fully shuts down and restarts the computer. On restart, if Automatic Restart Sign-On is enabled, the device automatically signs in and locks based on the last interactive user. After sign in, it restarts any registered applications.

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/shutdown

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago) (1 children)

Well that's handy. I wonder what determines if it can relaunch a program or not. Does it retain your actual work state though, or just relaunch those programs? On my MacBook if I tell it to restore stuff when I shut down then it takes me back to exact same state, sans some VPN logins. Unsaved text editor files will still be there, whatever I had open in vs code will be active, all my browser tabs will restore, etc.. It acts more like a hibernate than a shutdown.

[–] [email protected] 2 points 11 months ago

Yep it does restore application state as well, but it's a bit of a hit-and-miss. Notepad is restored surprisingly well - including unsaved text and multiple windows; Firefox and Edge browser tabs are restored; unsaved Word docs are restored as well but oddly enough, Outlook's state isnt restored (although it does save any unsaved drafs).

I'm guessing some sort of resume/restartable support is needed from the app as well for this to work properly. I imagine modern "UWP" apps would just work, but some additional coding might be needed for traditional win32 apps. Like Adobe Reader for instance, it doesn't get restored at all.