Stop programs from automatically re-open after spontaneous restart?

Discussion in 'OS X Yosemite (10.10)' started by Doc69, Mar 31, 2015.

  1. Doc69 macrumors 6502

    Joined:
    Dec 21, 2005
    #1
    When my Mac Pro, for some unknown reason, spontaneously restarts, then all previously open programs will automatically re-open if I don't click NO within 60 seconds in the checkbox that comes up. I never want programs to re-start after a re-boot, but when a spontaneous restart happens, they always do.

    Is there a terminal command that can change this behavior? I want it to be the exact opposite, i.e. if I don't say yes, then I don't want any programs to automatically re-open after a restart.

    I have disliked this behavior ever since it was introduced in Lion. There should be a setting to reverse it. Hopefully a terminal command exists to fix it!
     
  2. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #2
    Click on the Apple icon in the upper left hand corner and select "Log Out" but don't logout. If the "Restart Applications" check box enabled? If so, uncheck it.

    Now as far as the spontaneously restarts happening, open the console application and see if there are any crash logs generated.
     
  3. Doc69 thread starter macrumors 6502

    Joined:
    Dec 21, 2005
    #3
    Hi Taz, I have unchecked that box a long time ago. Are you sure this box should aspect behavior after a crash, and not only when you log out properly? If so, perhaps I have a bug?

    Next time I re-boot, I will check the box and the reboot again and uncheck it. Just to make sure there's no glitch there.

    ----------

    I've looked in Console before but couldn't find any answers. Where are the info about a crashes supposed to be stored? Anything labeled CrashReporter is empty.
     
  4. KoolAid-Drink macrumors 65816

    Joined:
    Sep 18, 2013
    Location:
    California
    #4
    Upon the next crash and restart, press SHIFT as your user account is signing in (NOT when the Apple logo appears; after that). That should prevent any programs from opening.
     
  5. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #5
    Have you checked the option ‘Close windows when quitting an app’ in System Preferences > General? That should disable this feature altogether, to my knowledge.
     
  6. Doc69 thread starter macrumors 6502

    Joined:
    Dec 21, 2005
    #6
    Thanks, I didn't know that. I'll use it next time it happens if I'm by the computer (which unfortunately I'm usually not).

    ----------

    Yes, this option is already checked, but it doesn't seem to have an effect on programs closed because of a logout or crash.
     
  7. Morpheo macrumors 65816

    Morpheo

    Joined:
    Feb 26, 2014
    Location:
    Paris/Montreal
    #7
    This will only affect login items no?
     
  8. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #8
    Expand "System Diagnostic Reports" and look for items that end with ".crash".
     
  9. KoolAid-Drink macrumors 65816

    Joined:
    Sep 18, 2013
    Location:
    California
    #9
    I heard it also stops programs that were previously running from starting again. Could be wrong, though, it's worth a try.
     
  10. grahamperrin macrumors 601

    grahamperrin

    Joined:
    Jun 8, 2007
    #10
    Do you mean, a crash of the app?

    Or, a kernel panic (a crash of the operating system)?
     
  11. Doc69 thread starter macrumors 6502

    Joined:
    Dec 21, 2005
    #11
    Finally found a Solution

    Just for reference, I have now found the solution to the problem:

    Quit all your apps.

    Navigate to: ~/Library/Preferences/ByHost/com.apple.loginwindow.*.plist (whereby * is a bunch of characters)

    Get Info on the file, and lock it using the "Locked" checkbox.

    You've now prevented OS X from saving what apps and windows are open. To reverse this setting, simply unlock the file!


    Many thanks to Mike who came up with this solution!

    http://www.mikeindustries.com/blog/...ion-from-ever-re-opening-apps-after-a-restart
     

Share This Page