Mouse right click on Mavericks

alopez
New Contributor

After deploying Mavericks. Right Clicking ability is not enabled. What is the easiest way to fix this for a Mac Lab.

1 REPLY 1

daz_wallace
Contributor III

Hi Alopez,

The easiest way is to use a management solution (MCX, Profiles, Puppet (?) or scripts) to set the preference for the users.

The file is "~/Library/Preferences/com.apple.driver.AppleHIDMouse.plist", the Key is "Button2" and it's value needs to be "2".
The second file is "~/Library/Preferences/com.apple.driver.AppleBluetoothMultitouch.mouse.plist", the key is "MouseButtonMode" and it's value needs to be "TwoButton".

If you want to script these into the user template, I've used the below:

#!/bin/sh
for i in `ls -1 "/System/Library/User Template"`; do
    # turn on right click
        defaults write "/System/Library/User Template/${i}/Library/Preferences/com.apple.driver.AppleHIDMouse" Button2 -int 2
        defaults write "/System/Library/User Template/${i}/Library/Preferences/com.apple.driver.AppleBluetoothMultitouch.mouse" MouseButtonMode -string TwoButton
done
exit 0

Hope that helps!

Darren