Comments (2)
Mouse fix suddenly stopped working this morning after a reboot. I tried the installation process again but fail with the same error as OP.
from mac-mouse-fix.
If you copy pasted the command from the Mac Mouse Fix Help Page the invalid API object reference
error message is normal - It doesn't necessarily mean that the command failed.
I totally see why this would be quite confusing and I'll definitely consider adding a note on this to the Help page.
Thank you guys for making me aware of this issue! :)
Detailed expanation
The command from the website actually consists of two separate commands. One that tries to add a Gatekeeper exception for the case that Mac Mouse Fix is only installed for the current user (In the User Library) and also for the case that it is installed for all users (In the Root Library).
In most cases, one of the two commands will fail, because Mac Mouse Fix is only installed either for the current user or for all users, but not both.
Here is the command as found on the website:
sudo spctl --add ~/Library/PreferencePanes/Mouse\ Fix.prefPane; sudo spctl --add /Library/PreferencePanes/Mouse\ Fix.prefPane
This command consists of two separate commands:
-
sudo spctl --add ~/Library/PreferencePanes/Mouse\ Fix.prefPane;
This one tries to add a Gatekeeper exception for Mac Mouse Fix if it's installed in the User Library.
But if Mac Mouse Fix is not found in the User Library (e.g. because it's instead installed in the Root Library) this will produce the error:
~/Library/PreferencePanes/Mouse Fix.prefPane: invalid API object reference
-
sudo spctl --add /Library/PreferencePanes/Mouse\ Fix.prefPane
This one tries to add a Gatekeeper exception for Mac Mouse Fix if it's installed in the Root Library.
But if Mac Mouse Fix is not found in Root Library (e.g. because it's instead installed in the User Library) this will produce the error:
/Library/PreferencePanes/Mouse Fix.prefPane: invalid API object reference
So you'll probably encounter one of these two error messages when using the command found on the website. As long as you're not encountering both, everything should have worked fine.
from mac-mouse-fix.
Related Issues (20)
- Scrolling Settings by App and Enable/Disable by App [enhancement]
- Restricted action assignment on scroll [enhancement]
- Choose application which is not wanted to use Mac Mouse Fix [enhancement]
- Modifier keys plus mouse button [enhancement]
- Menu bar On/Off toggles for individual buttons. [enhancement]
- App started crashing since a week ago [bug] HOT 1
- macOS Sonoma Version 14.6 broke scrolling [bug]
- Use option or command as buttons when held [enhancement]
- After macos update scroll doesn't work [bug] HOT 2
- Unable to capture middle mouse button press and drag. [bug]
- Toggling Mission Control Removes Its Keyboard Shortcut [bug] HOT 1
- [REQUEST] Settings for specific applications
- Assign modifier key to extra mouse buttons [enhancement] HOT 2
- 3.02 zoom scrolling feature stops working after a couple of seconds after restart [bug]
- Adjustable minimum travel distance on drag [enhancement]
- The middle button on my Logitech M170 doesn't seem to be recognized [bug]
- Override keyboard shortcut setting [bug]
- Scrolling function not working [bug]
- Add Apps / Conditions filter [enhancement]
- Smooth scrolling stopped to work after upgrade to macOS 14.6.1 [bug] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mac-mouse-fix.