<div dir="ltr">Dick,<div><br></div><div>I must first say that your effort here in supplying a new version for this unusual (and, hopefully, rare) situation goes above and beyond what any of us should reasonably expect! Thank you.<br></div><div><br></div><div>I can report that Version 4.70, with the hidden preference IgnoreStartOnReboot as described in your message, does the trick. Now, when I perform the 3-step procedure I previously described, the dreaded gray window does not appear. Indeed, no TeXShop window appears since it does not restart when the Mac starts up again.</div><div><br></div><div>Just to muddy the waters, I wanted to point out one more thing, though. My 3-step procedure was my way of simulating a system-wide panic and reboot, but this may not be an acceptable substitute. The very first time I tried this, I set the hidden preference, opened TeXShop 4.70, then restarted the Mac. At that moment, I got the dreaded brief fan noise which usually indicates a crash. Upon restarting, I saw that in fact it had crashed! Moreover, in this first experiment, TeXShop 4.70 reopened on its own with both the gray and white windows -- and, as before, this required a force-quit.</div><div><br></div><div>A subsequent experiment resulted in the behavior you intended: the machine restarted and TeXShop did not open. I am calling this a success.</div><div><br></div><div>As a point of reference, I am using a 2019 16-inch MacBook Pro with MacOS 12.2.1. Very recently, I had to erase the drive and reinstall MacOS from scratch, so one might think I have a relatively pristine environment. Whether or not this is really the case is debatable: when I restored my account from a TimeMachine backup onto this presumably pristine OS, the console showed a significant number of crash reports. </div><div><br></div><div>Thanks again.</div><div><br></div><div>Bill Slough</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 10, 2022 at 5:16 PM Richard Koch <<a href="mailto:koch@uoregon.edu">koch@uoregon.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div style="word-wrap:break-word">
William Slough,
<div><br>
</div>
<div>Although I cannot reproduce your problem, I might be able to fix it. I'm preparing a new version of TeXShop with very few changes, but one change might help you. You can download a preliminary version via</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span><a href="https://pages.uoregon.edu/koch/TeXShop470.zip" target="_blank">https://pages.uoregon.edu/koch/TeXShop470.zip</a></div>
<div><br>
</div>
<div>Let me explain.</div>
<div><br>
</div>
<div>If several programs are running on your Mac and you want to quit for the night, you can select the menu "Shut Down"</div>
<div>A dialog appears, and it has a selectable item reading "Reopen windows when logging back in." If you select this, then the next time you boot your Mac, the programs that were running when you shut down will start running again.</div>
<div><br>
</div>
<div>One of my users ran into a problem. He typically opened several projects in TeXShop. When the Mac rebooted and TeXShop automatically started, it would get into a loop and have to be aborted. But then when it was started again, it opened without
problems. I could not reproduce this problem.</div>
<div><br>
</div>
<div>However, I added a fix for him. Version 4.70 has a new hidden preference item named IgnoreStartOnReboot. By default, this preference has value NO and nothing changes. But if you quit TeXShop and then type</div>
<div><br>
</div>
<div><span style="white-space:pre-wrap"></span>defaults write TeXShop IgnoreStartOnReboot YES</div>
<div><br>
</div>
<div>then when you shut down and ask all your programs to start again on reboot, they will all start except TeXShop. You have to start it manually.</div>
<div><br>
</div>
<div>I just checked, and this preference also affects Restart. So if you define it to be YES, then when you restart, TeXShop will not restart automatically. (The preference does NOT affect adding TeXShop to the list of Login Items for a user, so you
can still add TeXShop to that list.)</div>
<div><br>
</div>
<div>Thus this preference changes only two things: if you use Restart, or you shut down your machine and later restart it, all other programs will start again automatically( if you clicked the button on shutdown), but TeXShop won't.</div>
<div><br>
</div>
<div>-----------</div>
<div><br>
</div>
<div>Incidentally, I assume that when TeXShop has just a blank window open and you quit it, and then later restart TeXShop, the blank window appears without that second gray window. So I'm assuming the bug only happens with Restart or with shutting
down your machine and then booting it up again at a later time.</div>
<div><br>
</div>
<div>Dick Koch</div>
<div><br>
</div>
<div><br>
</div>
</div>
</blockquote></div>