Coder Social home page Coder Social logo

Comments (2)

Fingel avatar Fingel commented on August 15, 2024

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.

noah-nuebling avatar noah-nuebling commented on August 15, 2024

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:

  1. 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

  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.