ttscoff / bunch

Documentation repository for Bunch.app
https://bunchapp.co
116 stars 5 forks source link

Apps won't quit - Sonarr / Radar #307

Closed BillKeenan closed 10 months ago

BillKeenan commented 1 year ago

Apps open fine, but won't close.

As simple as this in the bunch

Radarr Sonarr

I've used the basic names, as well as the names pulled from plist,

they are based on the same code, so likely the same issue between them.

There's nothing in the bunch log,

ttscoff commented 1 year ago

Have you tried using the bundle identifier? I’m not familiar with either of these apps, so I can’t be certain what complexities there may be.

Thanks, Brett On Nov 7, 2023 at 5:24 PM -0600, Bill Keenan @.***>, wrote:

Apps open fine, but won't close. As simple as this in the bunch Radarr Sonarr I've used the basic names, as well as the names pulled from plist, they are based on the same code, so likely the same issue between them. There's nothing in the bunch log, — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

BillKeenan commented 1 year ago

Yeah,

com.osx.sonarr.tv

Again, starts it fine, but doesn't quit it. Quitting it via activity manager works fine with normal quit (not force).

Any way I can debug what bunch is trying to do to close it? an equivalent console command?

BillKeenan commented 1 year ago

2023-11-08 11:15:35: ⚪[grabber] Launching app (com.osx.sonarr.tv)
2023-11-08 11:15:44: ⚪[grabber] Closing <<<<<<<<<<<<<<<<<<
2023-11-08 11:15:44: ⚪[grabber] Quitting app com.osx.sonarr.tv
ttscoff commented 1 year ago

What Bunch does is actually closer to the AppleScript command "quit" than anything you would do from Terminal. Open up Script Editor and try:

tell app "Sonarr" to quit

And let me know what happens. I might have to install this app to figure out what's going on, but I've never even heard of it before.

ttscoff commented 1 year ago

I considered installing it to debug, but it's not codesigned, and THEN requires installing a PKG that's not codesigned. I'll avoid that hassle, thank you very much :).

BillKeenan commented 1 year ago

Yeah, that gets a timeout, I imagine the app is just kinda garbage..

ttscoff commented 1 year ago

Your best option is probably to send a killall shell command on quit. You might need to use ps to find the prices name, but it would something like

!$ killall Sonarr

RosemaryOrchard commented 1 year ago

I'd recommend running these on a dedicated device alongside Plex and as docker containers. They're not designed to be started/shutdown regularly.