Middle-Community icon indicating copy to clipboard operation
Middle-Community copied to clipboard

Middle stops working after closing laptop and re-opening

Open matthaeusheer opened this issue 1 year ago • 9 comments

Hi

I have middle configured as follows image

Often times when I close my laptop and login again, Middle doesn't work anymore. My feeling is that this does not happen every single time. But enough to be quite annoying. When I go into Middle -> About -> Debug -> Relaunch it works absolutely fine again.

Properties of my Mac image

Best, Matt

matthaeusheer avatar Feb 05 '24 11:02 matthaeusheer

In that same debug menu, there is an option to delay relaunch after wake. You can enable that to make it wait a little longer before restarting the app, and this should fix your issue.

In the event that you still have an issue, then you can extend this wait time a little longer with a terminal command. defaults write com.knollsoft.Middle restartOnWakeDelay -float 10

The default value is 1 second, using the menu item sets it to 5, and 10 should be more than enough. Obviously the downside of a larger wait is that you have to wait longer for it to start working.

This is a workaround for a quirk in the event processing in macOS, and if you're experiencing it, then it's likely that you have another app that's causing this. One potential way to figure it out is to remove accessibility privileges for all other apps and checking as you add them back in.

rxhanson avatar Feb 05 '24 16:02 rxhanson

I have the following config now. I feel like it got only worse. As of right now I canot make it work at all anymore (with or without the ticks). Also restart doesn't help. Tried to remove all the ticket things and still no success. :( Also defaults write com.knollsoft.Middle restartOnWakeDelay -float 10 did not help.

image

matthaeusheer avatar Feb 12 '24 17:02 matthaeusheer

The only thing that adding that delay does is make it take longer before the app restarts itself. Middle working less than before points to something external to Middle causing issues with the macOS event stream.

Do you have any other apps running that use accessibility privileges? If so, do you see different behavior when you quit those other apps?

When you have an issue, if you click on Show Viewer... in the debug menu, are there touches displayed?

rxhanson avatar Feb 13 '24 06:02 rxhanson