Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shutdown keeps shutting down #9

Open
ghost opened this issue Dec 27, 2014 · 12 comments
Open

Shutdown keeps shutting down #9

ghost opened this issue Dec 27, 2014 · 12 comments

Comments

@ghost
Copy link

ghost commented Dec 27, 2014

This afternoon I used the spotlight command to bring out the shutdown app command like i've been doing since i found this useful tool online. But today something odd happened. When i turn my MPB back on, it booted to a less than a second desktop instance then black screen and that animated wheel when you shutdown. After several frustrated attempts to figure out what the heck was going on, almost caving and settling for internet recovery, since i couldn't boot properly, i had the idea to bring the Force Quit Applications window, command+option+esc, to at least try and see if anything unusual was running and forcing the system to shutdown. That's when i saw Shutdown at the top of the list and realized that as soon as the system was starting up the Shutdown command app kept running and shutting it down again and again. Deleted the app via guest user profile and all things back to normal.
Aside that minor scare it is a great and useful app.
Will be following your progress and try it again once this issue is resolved.

Cheers!

@siong1987
Copy link
Owner

@crodrigues76 this seems like a serious problem but so far i have never actually accounted such problem. keep me posted on the progress please!

@dramaticlly
Copy link

this actually happened to me twice. (it's not always reproducible. but it seems happen when I shutdown with many application open. I doubt it might be related to when some app is trying to stop the shutdown process)
I was able to break such loop by enter the safe mode and play around with login item..
hopefully you can come up with updated version to address such issue

@MichaelKraft
Copy link

Had to uninstall these because of this, got it three times on either of my profiles in less than two weeks. Make sure your app persistence is still enabled. It seems like they aren't fully exiting before the shutdown and OS X thinks they need to be restarted.

Possibly only happens on really fast ones? Late 2014 Retina Macbook Pro here, i7 16 GB of RAM, just upgraded to this one from a fairly older one where I never had this issue.

@productinfo
Copy link

same issue for Logout also..
On my system, after login OS automatically opens previously opened applications.
On execution of "Logout" application, app does not quit and issues "Logout" command. So, it is re-launched after login. Which causes logout again.
I believe same issue for "shut down" and "restart" apps also.

@bilke
Copy link

bilke commented Dec 9, 2020

This is still an issue.

@i-mw
Copy link

i-mw commented Apr 20, 2021

What's the fuck is this!!!.. I installed this to save me time and ended up wasting 30 minutes trying to turn this shite off .. I don't have a guest user and couldn't enable tty.. so had to install a program on my windows installation to make me access apfs partitions and delete these shite applications from Applications.. what the fuck!!!

@dramaticlly
Copy link

in my honest opinion, it's time to try https://www.alfredapp.com/help/features/system/ instead

@wish2snowboard
Copy link

I'm having the same issue. Easiest way I've found out of this is to boot in safe mode by holding shift then restarting. That clears the reopening of apps that were open during previous shutdown. Anyone figured out a fix for this?

@cuberhaus
Copy link

This is still an issue, unacceptable

@jsonMartin
Copy link

Lol, this just happened to me. Constant reboot loop, required safe mode to fix. I assume it's because it's trying to re-open closed applications on logout.

@lsloan
Copy link

lsloan commented Feb 5, 2024

I finally experienced this problem today. Thus far, I'd used each of the shortcuts from time to time, except for the "Shutdown.app" one. Today I finally used that one.

The problem was that my computer had the "Reopen windows when logging back in" option enabled. So, every time I logged in, "Shutdown.app" would launch, and my computer would shut down. I looked around for ways to prevent opening apps when logging in. Supposedly, holding down the "shift" key while logging in was supposed to help, but it made no difference. My employer enforces many security features on my MacBook Pro, so I couldn't log in as "Guest".

Fortunately, I had created another account for software testing, so I used that, then used fast user switching to log into my account. I held down "shift" while logging in that way. I don't know whether that helped, but I was able to login without "Shutdown.app" running. I tried to go disable the "Reopen windows" feature from the "Shut Down…" item in the Apple menu, but the option wasn't there and when I authenticated to cause a shutdown, it really did shut down and didn't show me that option.

Again, fortunately, after booting the computer again, I was able to log in and the "Reopen windows" option was no longer checked for my account.

I've come to two conclusions following this experience…

  1. The "Reopen windows when logging back in" option is HORRIBLE. I've felt that in the past. I had always hated that option. However, something changed about a year ago that made me reconsider. So, I enabled it. It helped me with some things, but was still mostly annoying. Now that I see it can prevent a login like this, I definitely do not like that option. (Again.)
  2. The "Showdown.app" needs to be changed so that it triggers a shutdown WITHOUT being a running app. For example, maybe it sets a very short timed process to shut down the computer, during which time "Shutdown.app" itself has time to exit. Then, if a user has "Reopen windows…" enabled, "Shutdown.app" will not be recorded as one of those apps that needs to be reopened.

@lsloan
Copy link

lsloan commented Feb 5, 2024

@crodrigues76 this seems like a serious problem but so far i have never actually accounted such problem. keep me posted on the progress please!

@siong1987, if you've not been able to reproduce this, use the following steps…

  1. In the Apple menu, choose "Shut Down…"
  2. In the dialog box that appears, select the checkbox for "Reopen windows when logging back in". Be sure it shows a check in it after you click the box. That sets the option in your profile settings.
  3. Click the "Cancel" button to abort that shut down.
  4. Run "Shutdown.app".
  5. After the computer shuts down, start it up and log back into the same account you had just been using.
  6. After authenticating, macOS will reopen windows that were open before, including "Shutdown.app".
  7. Your computer will shut down again. It will do this endlessly.

See my other comment for an idea that may prevent this problem. I don't know whether it's practical. It's only an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants