artginzburg / MiddleClick-Sonoma

 "Wheel click" with three-finger click/tap for Trackpad and Magic Mouse.
GNU General Public License v3.0
1.47k stars 85 forks source link

Application dies on wake from sleep #19

Closed superevr closed 1 year ago

superevr commented 4 years ago

macOS 10.15.2 MacBook Pro 16-inch 2019

MiddleClick is not running after my mac wakes up from sleep.

drbradfo commented 4 years ago

I'm also experiencing MiddleClick crashing on sleep.

macOS 10.15.2. MacBook Pro 15-inch 2018.

hamzamerzic commented 4 years ago

+1 macOS 10.15.2. MacBook Pro 13-inch 2017.

Jont828 commented 4 years ago

+1, running 10.15.1 on the 16 inch MBP

mofolo commented 4 years ago

Same problem on 2018 13" MBP; OSX - 10.15.2

yedpodtrzitko commented 4 years ago

Same problem with the latest version.

I tried to run it from shell, to see if it will report any error, and it actually helped - it displayed the dialog about Accessibility Settings (which didn't appear otherwise when starting it via Spotlight). So I disabled & re-enabled it there, which solved the issue.

kgorol commented 4 years ago

Application also dies for me on 10.14.6

thermistor commented 4 years ago

Disabling and reenabling did not solve it for me. It's still gone on wake from sleep. MacBook Pro (16-inch, 2019), 10.15.3.

jackblk commented 2 years ago

I use this one to auto restart app after sleep:

defaults write com.rouge41.middleClick autoRestartOnWake -int 2

svuhoang commented 2 years ago

Running into this issue currently with MBP M1 Pro.

Auto restart app after sleep works, but doesn't work immediately after wake since it needs to restart. Is there a better solution?

OnlineBlazeBoy commented 2 years ago

I have the same issue with the MacBook Pro 14-inch with the M1 Pro.

I tried the auto-restart on wake but the app just crashes/quits (showing the loading colour wheel when I hover over the menu bar icon) after a few seconds.

Also tried disabling and re-enabling accessibility permissions and removing and re-adding to login items.

Nothing seems to be working.

ElectricS01 commented 2 years ago

Also dies for me when it sleeps

shanep2300 commented 1 year ago

I use this one to auto restart app after sleep:

defaults write com.rouge41.middleClick autoRestartOnWake -int 2

This didn't work for me either. The only thing that works is closing the app and reopening it.

artginzburg commented 1 year ago

You should try out the new pre-release, it fixed all the issues of this kind for me (I'm on macOS 12.6).

StevenHa0 commented 1 year ago

Thanks, that worked for me! I'm also on macOS 12.6 - M1 MacBook Air.

artginzburg commented 1 year ago

I use this one to auto restart app after sleep:

defaults write com.rouge41.middleClick autoRestartOnWake -int 2

@jackblk where did you find this setting? I now realised that it was added to Readme just because 2 people reported using it. Then I've seen 2+ people saying that it doesn't help. Also tried it myself, and it did not change anything apparently. This setting does not exist in the code of this repository, or LoPablo's fork, or the base fork.

It should probably be removed from Readme not to confuse anyone.

jackblk commented 1 year ago

@artginzburg I found it here from another developer with a similar app: https://www.reddit.com/r/MacOS/comments/mijjf0/middleclick_application_keeps_closing/gy4z44m/

I'm not sure if it works for everyone, but it works for some including me. Maybe adding a note saying it might or might not work?

artginzburg commented 1 year ago

Ah, now I remember. Looks like me and possibly some other people asked for a fix to this issue in email to Ryan (the dev of Middle) ~1.5 years ago, and this is the solution he came up with. And it worked for me in Middle. This setting was never implemented in MiddleClick though. I should probably add it if we don't come up with a final stable fix.

artginzburg commented 1 year ago

This should be fixed in the new release. Works for me on macOS 13.1 Ventura and M1 Pro.