[Casper] disable Dashboard on lab computers
Leacy, Miles
Miles.Leacy at PoloRalphLauren.com
Wed Mar 5 13:27:53 PST 2008
I¹ve found that this plist alone is not enough to disable Dashboard.
When you use the script:
defaults write com.apple.dashboard mcx-disabled -boolean YES;
killall Dock
Dashboard still exists as a component of Dock.app, and a standalone app in
/Applications. It can still be invoked by hotkey, or by directly launching
either app.
The way I disable dashboard in Tiger is to run the following script:
#!/bin/sh
mkdir -p /Library/polo/disabled/Dock
cp -R /System/Library/CoreServices/Dock/Contents/Resources/Wid*
/Library/polo/disabled/Dock/
rm -R /System/Library/CoreServices/Dock/Contents/Resources/Wid*
cp -R /System/Library/CoreServices/Dock/Contents/Resources/wid*
/Library/polo/disabled/Dock/
rm -R /System/Library/CoreServices/Dock/Contents/Resources/wid*
cp -R /System/Library/CoreServices/Dock/Contents/Resources/Dash*
/Library/polo/disabled/Dock/
rm -R /System/Library/CoreServices/Dock/Contents/Resources/Dash*
cp -R /System/Library/CoreServices/Dock/Contents/Resources/dash*
/Library/polo/disabled/Dock/
rm -R /System/Library/CoreServices/Dock/Contents/Resources/dash*
cp -R /Library/Widgets /Library/polo/disabled/
rm -R /Library/Widgets
cp -R /Applications/Dashboard.app /Library/polo/disabled/
rm -R /Applications/Dashboard.app
chmod -R 700 /Library/polo/disabled
for i in $( ls /Users/ );
do
fn=$i
if test ${i:FIRST:1} != "." -a $i != "Shared"; then cp -R
/System/Library/User\
Template/English.lproj/Library/Preferences/com.apple.dock.plist
/Users/$i/Library/Preferences/com.apple.dock.plist; cp -R
/System/Library/User\
Template/English.lproj/Library/Preferences/com.apple.symbolichotkeys.plist
/Users/$i/Library/Preferences/com.apple.symbolichotkeys.plist; chown -R $i
/Users/$i/Library/Preferences; fi
Done
# end script
The Dashboard hotkey must be turned off too. If you leave the Dashboard
hotkey active after removing/deleting Dashboard, the Dock will crash and
relaunch when you press the hotkey. It doesn¹t seem to have any ill effect
other than an annoying ³blinking² of the dock.
The ³for² statement at the end copies a hotkey plist from the user template
to all existing home folders. The script was written before I adopted
Casper and was a postflight script in a .pkg that put the plist into the
User Template. A .dmg package containing the plist and set to FUT and FEU
would accomplish the same thing, but you¹ll still need the rest of the
script to perform the Dashboard-ectomy.
On 3/5/08 3:49 PM, "Thomas Larkin" <tlarki at kckps.org> wrote:
> I think you need to include the full file path of where that plist
> lives, also can you show us the exact command?
>
> Thomas Larkin
> TIS Department
> KCKPS USD500
> tlarki at kckps.org
> cell: 913-449-7589
> office: 913-627-0351
>>>> >>> "Jeff Johnson" <jeff.johnson at glendale.k12.wi.us> 03/05/08 2:22 PM
>>>> >>>
> Hello -
>
> Is there a way to use one of the Casper tools to disable Dashboard on
> lab
> machines (all Macs running 10.4.11)?
>
> I've tried doing this via ARD (3.2) using these commands:
>
> defaults write com.apple.dashboard mcx-disabled -boolean YES;
> killall Dock
>
> I paste that in the Unix window in ARD and try to run the command as
> root
> --
>
> [Image:3508_15735_1.png]
>
> -- but I get this error message "No matching processes were found"
> [Image:3508_15803_2.png]
> Any idea on what's wrong? Is there a better way to do this?
>
> Thank you!
>
> Jeff
> --
> Jeff Johnson
> Technology Coordinator
> Glendale-River Hills School District
> 2600 W. Mill Rd.
> Glendale, WI 53209
> 414-351-7170 x2195 office
> 414-351-8100 fax
> * 414-218-7096 mobile (new)
> jeff.johnson at glendale.k12.wi.us
>
>
>
> _______________________________________________
> Casper mailing list
> Casper at list.jamfsoftware.com
> http://list.jamfsoftware.com/mailman/listinfo/casper
>
>
>
> --
> Miles Leacy
> Senior Macintosh Technician
> Polo Ralph Lauren
> 212-318-7603
> miles.leacy at poloralphlauren.com
>
>
This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please immediately notify the sender and delete the message from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.jamfsoftware.com/pipermail/casper/attachments/20080305/a7711e32/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 5731 bytes
Desc: not available
Url : http://list.jamfsoftware.com/pipermail/casper/attachments/20080305/a7711e32/attachment-0001.png
More information about the Casper
mailing list