Disable shake to locate pointer in JSS?

m_higgins
Contributor

Has anyone figured out a way to disable this feature which is on by default?

1 ACCEPTED SOLUTION

jjones
Contributor II

I might at this if you are looking to do a mass rollout:

#!/bin/sh

#Set arguements for script
loggedInUser=""

#Writes current user that is logged-in into terminal
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

#Use sleep if you are using login trigger, due to login time differences can cause false users
#sleep 2

#Settings Cursor Magnification to off
su -l "$loggedInUser" -c "defaults write ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification -bool YES"

#Checking Cursor Magnification and reporting to Casper logs
su -l "$loggedInUser" -c "defaults read ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification"

View solution in original post

4 REPLIES 4

jjones
Contributor II

Looks like it is in the .GlobalPreferences, you can run this command however it does not take immediate affect unless you logout/reboot.

defaults write ~/Library/Preferences/.GlobalPreferences CGDisableCursorLocationMagnification -bool YES

thoule
Valued Contributor II
defaults read ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification

It's inverted (is disabled), so NO is checked and YES is unchecked.

EDIT: Oops. Sorry, late to the party.

jjones
Contributor II

I might at this if you are looking to do a mass rollout:

#!/bin/sh

#Set arguements for script
loggedInUser=""

#Writes current user that is logged-in into terminal
loggedInUser=`/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }'`

#Use sleep if you are using login trigger, due to login time differences can cause false users
#sleep 2

#Settings Cursor Magnification to off
su -l "$loggedInUser" -c "defaults write ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification -bool YES"

#Checking Cursor Magnification and reporting to Casper logs
su -l "$loggedInUser" -c "defaults read ~/Library/Preferences/.GlobalPreferences.plist CGDisableCursorLocationMagnification"

m_higgins
Contributor

Thanks @jjones This worked perfectly