Posted on
10-24-2014
08:51 AM
- last edited on
03-04-2025
09:12 AM
by
kh-richa_mig
For some reason, Citrix doesn't like Safari unless we go up to the Safari dropdown menu and choose "reset defaults". To my knowledge I'm not doing anything to Safari to require resetting it, but that's what we need to do. is there a way to script this out so i can put it into Self Service?
Posted on 10-24-2014 10:27 AM
It would seem easier to educate the users to use that option (no longer in Safari 8) than to send them to Self Service?
Otherwise, I have an old list from a thread on the Apple forums that lists the files you can manually remove and it would be easy to script it, adding or removing items to fit your needs. Would be mostly version-proof too I'd guess.
Maybe you could even try lines below one at a time to see what might be needed without blasting it in total?
mv ~/Library/Safari ~/Desktop/Safari-`date +%Y%m%d%H%M%S`;
rm -Rf ~/Library/Caches/Apple - Safari - Safari Extensions Gallery;
rm -Rf ~/Library/Caches/Metadata/Safari;
rm -Rf ~/Library/Caches/com.apple.Safari;
rm -Rf ~/Library/Caches/com.apple.WebKit.PluginProcess;
rm -Rf ~/Library/Cookies/Cookies.binarycookies;
rm -Rf ~/Library/Preferences/Apple - Safari - Safari Extensions Gallery;
rm -Rf ~/Library/Preferences/com.apple.Safari.LSSharedFileList.plist;
rm -Rf ~/Library/Preferences/com.apple.Safari.RSS.plist;
rm -Rf ~/Library/Preferences/com.apple.Safari.plist;
rm -Rf ~/Library/Preferences/com.apple.WebFoundation.plist;
rm -Rf ~/Library/Preferences/com.apple.WebKit.PluginHost.plist;
rm -Rf ~/Library/Preferences/com.apple.WebKit.PluginProcess.plist;
rm -Rf ~/Library/PubSub/Database;
rm -Rf ~/Library/Saved Application State/com.apple.Safari.savedState