Posted on 08-05-2015 08:02 AM
Hi there,
I am trying to find a way to set scrollbars to "Always show" using a policy/sudo code/script etc.
I've tried the following, but it does not seem to be working: sudo defaults write NSGlobalDomain AppleShowScrollBars -string “Always”
Any help would be GREATY appreciated. My method of deployment is AutoDMG, DEP, then Policies and Configurations after boot. I'd love for this to be a part of the policies/config step.
Thanks,
Jay
Posted on 08-05-2015 09:33 AM
I was able to get the defaults write NSGlobalDomain AppleShowScrollBars -string “Always”
to work. However, I had to reload any program that was already open before it would take effect. Ex. I had Chrome, Outlook, etc open and ran the command. Nothing showed a change until I quit out that app and re-opened, i could then see the change take place. I could also see it take place on anything that was newly opened. It does seem kinda of strange that making the change from GUI is immediate but doing so through terminal isn't. This was tested on 10.10.4
Posted on 08-05-2015 11:01 AM
IIRC, this ties back to the whole cfprefsd process caching the various settings, so even when things are changed via Terminal, the change isn't quite so immediate. Killing the cfprefsd process should get it to re-initialize and load the setting more quickly. We're only pushing that pref as part of the user template at imaging time, so every account has it set as the default.