Posted on 12-03-2012 01:16 PM
Is there a way to block widgets in Lion? We have students that are playing wdgt games and running other time wasting apps. Is there a policy or a script that could be run?
Thanks
Eric
Posted on 12-03-2012 01:56 PM
might just want to disable the widgets / dashboard all together..
http://osxdaily.com/2007/03/14/how-to-completely-disable-dashboard/
Posted on 12-03-2012 06:44 PM
Try using a Configuration Profile that is what we use to block some widgets.
Posted on 12-04-2012 07:05 AM
Technicholas, do you have an example of what you're using?
Posted on 12-05-2012 01:23 PM
We changed the the owner on ~/Library/Widgets/ to root and then erased the contents. That will keep them from installing widgets manually. Then we change the permissions on the widget installer app to 770 (owned by root already), so they can't install new ones.
This way they can still use the stock widgets without being able to install any new ones. Script below.
#!/bin/bash
user=`ls -l /dev/console | cut -d " " -f 4`
rm -r /Users/$user/Library/Widgets/
mkdir /Users/$user/Library/Widgets/
chown root:wheel /Users/$user/Library/Widgets
chmod 775 /Users/$user/Library/Widgets
chmod 770 /System/Library/CoreServices/Dock.app/Contents/Resources/Widget Installer.app
killall Dock
echo "Reset widgets folder and restriction widget installation" >> /var/log/jamf.log
exit