Mac Os Reopen Apps On Restart

  


How to restart only the graphical side of OS X | 14 comments | Create New Account

Apps were still reopening after restart from Apple Script, or with shutdown command in Terminal. Permanently prevent macOS High Sierra from reopening apps after a restart Works in macOS El Capitan, Yosemite, Sierra, High Sierra. Solution: deny OS X access to the file it uses to store your session state. Mar 31, 2020  Sometimes, apps you install may cause problems. The code makes a request that isn’t expected by the operating system and/or the underlying hardware, forcing MacOS to reboot.

Click here to return to the 'How to restart only the graphical side of OS X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

This is silly. If the graphical side of the OS needs to be relaunched then a logout will suffice. The windowserver dies, and relaunches on logout. And your applications get quit cleanly.

This can be helpful if the GUI is locked up. How do you intend to logout when the keyboard and mouse don't respond?
If you can ssh in from another computer or your jailbroken iPhone you can restart the GUI WITHOUT rebooting.

When my GUI has died but I can still SSH in, I _want_ to reboot the whole system so I know there's no gremlins lurking. For this I use sudo reboot.

When you want to restart, use the following command to reboot the OS instead: shutdown -t 0 -r; The commands above will now restart or turn off Windows 10 in a special way, so it won't be able to reopen previously running apps. You can create the appropriate shortcuts to. The third-party app Delay Start lets you set a timer for specific apps to control when they start up. Delay Start works similarly to the Mac's own internal interface. Click the plus sign to add a. To keep applications from opening previous documents, go to System Preferences General and tick the Close windows when quitting an app checkbox. To keep the relaunch apps after reboot from occurring, un-tick the checkbox on the Shutdown or Restart pop-up window. Feb 25, 2016  Click on the menu button in the upper left corner of your screen. Click Restart. Click the Restart button on the pop-up menu to confirm. After doing so, the pop-up window begins a countdown from 60 seconds, so if you select Restart and walk away, the computer will complete its task.

Logging out does not kill WindowServer. That's why logging out isn't sufficient to make the 'non-transparent menu bar' hint work; WindowServer lives on. (This is easy to see in Leopard's Activity Monitor when viewing all processes hierarchically: the system-wide occurrence of launchd owns windowserver, as well as one more instance of launchd for each logged-in user.) That's why we said this in MDJ/MWJ 2007.12.03, because we hadn't seen anyone else point this out.
I think you're thinking of loginwindow, which requires WindowServer to run (obviously, or it wouldn't be showing a window). Logging everyone out may relaunch loginwindow, but not WindowServer. You need to restart or, more daringly, quit WindowServer to get it to relaunch.

Maye it is true in leopard, which I do not have yet, that the windowserver lives on as a process on logout. On previous systems the logout relaunches windowserver ( with no other users logged in, of course). In which case mark this as a leopard fix. In the older systems the relaunch of the loginwindow *also* causes the windowserver to relaunch. The paradigm is : logout cleanly ( handled by loginwindow), loginwindow quits, windowserver sees the loginwindow go down, windowserver quits, launchd( or init in previous systems) relaunches loginwindow which tickles the windowserver to relaunch. Fairly clean. Similarly the loginwinodow will exit cleanly ( unlike other applications) when the windowserver dies.
The problem with killing the windowserver is that you may leave dummy processes around, as the windowserver is ( or was pre-leopard for what I know) the parent process of all applications which present GUI. A busy process writing to disk will still be writing to disk, but invisible, after the windowserver is killed. The new windowserver has it's own session which preious sessioned applications cannot connect to, so no windows.
Even *if* the windowserver can catch the interupt and kill it's process this is by no means the safest way of exiting. ( I understand there is a difference between kill -hup and kill -9 which is way more dangerous since it is a kill, not an interrupt) as the other applications will be killed, or interrupted, and may not quit correctly, if at all. Carbon applications will probably behave badly, for instance.
As for the guy who suggested I *read* the comment. The original comment about the translucent menu fix did not mention ssh, and in any case for the reasons I mention killing windowserver makes it a bad idea in all cases.

May 02, 2019  Method 2: Change Settings from System Preferences Click the Apple icon from the top left. Choose System Preferences. Click and Open General From General, Uncheck “.

Mac Os Reopen Apps On Restarting

If I'm not mistaken is the same as and is two keystrokes shorter :-)

Yeah, but I find that HUP (= Hang UP) is much easier to understand and remember than some arbitrary number :). Having said that, if you know (and can remember) all the signal numbers then well done!

Apps

I've got a (mostly) unrelated comment/question. If the non-transparent menu bar stops being transparent, is there a way to make it semi-transparent again? (Not sure what happened to it, but it's solid again.)

When I used X11 window managers every day, sometimes the wm would get messed up and I didn't want to lose any windows or processes.

Within olvwm, I could send a -USR1 signal to the wm and it would restart itself (without losing anything).

Within dtwm (CDE's wm), I could send it a f.restart -noconfirm (using a little program called dtwmcmd), and the wm would restart itself (without losing anything).

Does anyone know whether OS X's wm has a restart function, like the ones that I've mentioned above, and whether we can switch consoles (or ssh in) and send it a signal/command that would gently restart it (without losing anything)?? Thanks; Larry.

Mac Reopen Apps On Startup

I was also wondering about the hidden features of quartz-wm, I guess we only see that running when X11.app is running; Larry

All GUI client processes die when their WindowServer connection is broken.

Restart

Windows Reopens Apps On Restart

Yes, but how do you even get to the Terminal if the GUI is completely locked up? I know in Linux we can Ctrl-Alt-F1/2/3/etc. to get a Terminal and shut down any processes, but don't see any such option in Mac OS X.

you can always ssh from outside into your hung box.

Mac Os Reopen Apps On Restart Mac

I just now happened to find my laptop in this funky state and was able to ssh in from another machine and reset the window manager as you described. Thanks for posting this!