How to delete a locked app, Karabiner?
Solution 1:
It should be done in the app itself.
In “Misc” tab, press the "Uninstall Karabiner-Elements" button.
You can also uninstall Karabiner-Elements from command line.
bash '/Library/Application Support/org.pqrs/Karabiner-DriverKit-VirtualHIDDevice/scripts/uninstall/deactivate_driver.sh' sudo '/Library/Application Support/org.pqrs/Karabiner-Elements/uninstall.sh'
https://karabiner-elements.pqrs.org/docs/manual/operation/uninstall/
For any other app/file which are locked, try to unlock it by unchecking the "locked" box in "Get Info" first.
If the box is greyed out, run the following in Terminal:
cd "/Applications"
sudo chflags noschg "Karabiner-Elements.app"
Then delete it by right click > "Move to Trash"
Read more about noschg at man chflags
.
Solution 2:
I had forgotten I had installed this app, but accidentally deleted the kernel extension and uninstaller script. I was left with an app that could not be trashed or removed or moved in any way.
Solved it like this:
- Download Karabiner-Elements
- Install
- Launch the app
- Go to "misc" and uninstall with the uninstall button.
- reboot
And then never install it again.
Really very annoying, I spent a lot of time trying out different suggestions but none of them worked. Changing the flags, changing the user, etc.
Solution 3:
None of the scripts above or the documentation from Karabinar existed on my paths or worked...the only way I was able to do this was
-
reboot my mac and kept holding command+r (this took me to recovery mode)
-
while in recovery mode I went to Utilities > Terminal and typed
csrutil disable
reboot
- after rebootI typed
sudo -i
and then
cd /Library/SystemExtensions
and I saw a funny folder name like this FB393D41-2F97-4069-97E1-1F97B711EA3B ,
rm -rf that folder (be careful not to delete anything else)
- then
ps -ef|grep karab
and kill the job with kill -9 PROCCESS_ID
- went to application folders via finder and deleted Karabinar from there too.
it was a pain for me but happy I removed this...if I had known this would be this much pain to remove it, I would have not even installed at all to begin with..