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

Big Sur support? #2

Closed
karlhorky opened this issue Nov 18, 2020 · 9 comments
Closed

Big Sur support? #2

karlhorky opened this issue Nov 18, 2020 · 9 comments

Comments

@karlhorky
Copy link

Hi, thanks for this fork!

Would you be able to offer a version that works on the new macOS Big Sur?

The existing artginzburg/MiddleClick-Catalina does not appear to work anymore: https://twitter.com/karlhorky/status/1327192793115193345

@karlhorky
Copy link
Author

Maybe it has something to do with the private framework MultitouchSupport being at a different path in Big Sur: https://developer.apple.com/forums/thread/653972

@karlhorky
Copy link
Author

@artginzburg, @LoPablo, @cl3m or @rmhsilva, would any of you be able to weigh in on the possible incompatibility here?

I could even see foreseeably taking over the work myself, if I was pointed in the right direction and guided a bit (I'm a beginner with Objective-C development).

@LoPablo
Copy link

LoPablo commented Nov 19, 2020

I am actually no longer using MiddleClick/MiddleTap. I first switched to the Mutlitouch App and after that I just got used to using the context menu when right clicking. If there is some time left I might take a look at why this is nor longer working on Big Sur but I can't promise.

@karlhorky
Copy link
Author

That would be great if you have time, thanks! I was researching a bit what possible incompatibilities could be and I stumbled across the path change for the private MultitouchSupport framework that I mentioned above in #2 (comment).

According to https://github.com/EpicGames/UnrealEngine/commit/1d252ee345cdf6c232b20c3b4bf14f13bb569c9d, the new path can be resolved as such:

string SDKROOT = Utils.RunLocalProcessAndReturnStdOut("/usr/bin/xcrun", "--sdk macosx --show-sdk-path");
PublicAdditionalLibraries.Add(SDKROOT + "/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/Current/MultitouchSupport.tbd");

...which for me results in a change between the two paths like this:

-/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/Current/MultitouchSupport
+/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/Current/MultitouchSupport.tbd

@LoPablo
Copy link

LoPablo commented Nov 19, 2020

So i just cloned this repo. It builds without any issues and tap and click functionality ist working
Since MiddleClick Catalina ist archived, is there anything that is not working with this fork? I didn't follow any development after my work for restoring the click mechanism was forked off.

@LoPablo
Copy link

LoPablo commented Nov 19, 2020

Does the binary you run show any error? Do you get a build error?
Btw: My magic mouse is dying. Poor thing.

@karlhorky
Copy link
Author

Since MiddleClick Catalina ist archived, is there anything that is not working with this fork?

Hm, no, there should be no difference for this fork (just the readme update in f7b2bd3)

Does the binary you run show any error? Do you get a build error?

What I have been trying is the midclick from Homebrew (v2.4.5):

$ brew cask info midclick
midclick: 2.4.5
https://github.com/DaFuqtor/MiddleClick
/usr/local/Caskroom/midclick/2.4.5 (64B)
==> Name
MiddleClick
==> Description
None
==> Artifacts
MiddleClick.app (App)

@karlhorky
Copy link
Author

karlhorky commented Nov 19, 2020

Oh wait, the latest version of this midclick cask seems to be outdated! 🤦‍♂️🤦‍♂️

There is another cask called middleclick with the updated v2.4.8.1, which seems to be the latest version of artginzburg/MiddleClick-Catalina:

$ brew cask info middleclick
middleclick: 2.4.8.1
https://github.com/DaFuqtor/MiddleClick
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/middleclick.rb
==> Name
MiddleClick
==> Description
None
==> Artifacts
MiddleClick.app (App)
==> Caveats
middleclick has been officially discontinued upstream.
It may stop working correctly (or at all) in recent versions of macOS.

==> Analytics
install: 205 (30 days), 532 (90 days), 3,138 (365 days)

Just installed (and enabled in System Preferences -> Security -> Privacy -> Accessibility) and it's working!

Thanks for all the help @LoPablo and sorry for the confusion!!

@karlhorky
Copy link
Author

And now there's a version in Lua based off of this code in Hammerspoon thanks to asmagill (issue here):

https://github.com/asmagill/hs._asm.undocumented.touchdevice/blob/master/Examples/middleButton.lua

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

2 participants