Strange and slow startup behavior after unchecking "Reopen windows when logging back in"
Today when I shut down the computer for a while, I decided I did want the computer to reopen windows on startups, because I always close windows anyway before I shut down. Therefore I unchecked the item as shown in the attachment below entitled "Reopen windows when logging back in" that is found in the shutdown box entitled "Are you sure you want to shut your computer now?" (see attached)
Since then every time today when I start up the computer I get a message "You shut down your computer because of a problem." (See second attachment below) Now also the computer takes a fairly long time to load the desktop and the Dock. After those load, the menu bar then takes absolutely forever to appear.
Here are the things that I have tried to get rid of the problems that suddenly appeared. None of these things in the list below has helped. Note that I also shut down and restarted the computer after each step listed below.
- Started under Safe Mode in the same user account. Safe Mode did not have any problems listed above, other than the long loading time that safe mode always has. The odd message was not there. Also the menu bar did not take any longer than the desktop took to load. However when I next started up under normal operation in the user account, I got the same message, the long loading time of desktop and dock, and the menu bar taking forever to appear after that.
- Reset the SMC and the PRAM
- Ran Disk Utility, and it found no problem.
- Started up as the administrator in the administrator's account, and the odd message appeared, the desktop and Dock took a fair bit of time to load, even though there were only three icons on the desktop, and the menu bar took forever after that to load.
- Ran maintenance scripts in the terminal in order to clear out clutter that might be slowing down the computer on startup, even though the daily maintenance script already had run today, the weekly script had run the other day, as well as the monthly quite recently.
Here is the command that I gave: sudo periodic daily weekly monthly
Nothing has worked so far, and I still get the odd message on startup as shown below, the desktop and dock take a while to load, and eventually forever after that the menu bar at the top decides to appear.
Are there preference files or other things that can be deleted to eliminate these issues?
About a month and a half ago I had the same thing with the original version of Monterey, and I ended up doing a clean installation and restoring everything from back ups. The restoration process, especially in the email was absolutely horrible and I don't want to have to do this again.
Are you able to help me? Thank you for your help.
Sincerely,
Wilson
iMac 27″ 5K, macOS 12.2