Google DesktopをinstallしたらUninstallでは沢山のfiles/foldersが残ってしまうのは前に載せたので、ご覧になればお分かりになりますが...
/private/tmp/.gdsl*/の2つのfolderが消去出来なくなります。
/private/tmp/.gdsl.XXX/
/private/tmp/.gdsl.XXXXXXXX/
/private/tmp/Config-XXXXXX.......restartで消去されます。
更にOSXに書き込む事が分かりました。
/System/Library/Frameworks/CoreServices.framework/
# Unix Excutable fileの殆どが書き換えられてしまいます。
.../Metadata.framework/Versions/A/Support/Spotlight/が作られます。
書き換えられたUnix Excutable fileを取り替えても.gdsl*/の2つのfolderは作られてしまいますので、CoreServices.framework/中ののfileにも何か書き込んでいると思います。
結局、shell scriptを組んで、CoreServices.framework/を全部取り替える事で完全に消去する事に成功しました。
--------- 自己責任で行って下さい ---------
一部手直ししないと使えないと思いますがご参考まで...
# CoreServices.framework/が入ったdmgを作ってpathをつけるとことか、/Library/の各folderに入っている各自のfolder/fileを消去しないように...
Google Desktopを終了して、Uninstall_GoogleDesktopをTerminalのwindowにdrag & dropしてreturnで、passwordを入れれば全て消去します。CoreServices.dmgは自動でmountしてcopy, permissions, unmoutします。
# chmod 755 [path to Uninstall_GoogleDesktop}を行う必要があります。
Uninstall_GoogleDesktop
#! /bin/sh
sudo rm -fR /Applications/Google\ Desktop.app;
sudo rm -fR /Applications/Google\ Updater.app;
sudo rm -fR /Library/Application\ Support/Google/;
sudo rm -fR /Library/Caches/Google/;
sudo rm -fR /Library/Google/;
sudo rm -fR /Library/InputManagers/GoogleModLoader/;
sudo rm -f /Library/LaunchDaemons/com.google.Desktop.Daemon.plist;
sudo rm -f /Library/LaunchDaemons/com.google.Desktop.StatsUploader.plist;
sudo rm -fR /Library/Logs/Google/;
sudo rm -fR /Library/PreferencePanes/;
sudo rm -f /Library/Preferences/com.google.Desktop.Installer.plist;
sudo rm -f /Library/Preferences/com.google.Desktop.plist;
sudo rm -fR /Library/Receipts/GoogleDesktop.pkg;
sudo rm -fR /Library/Receipts/GoogleModLoader.pkg;
sudo rm -fR /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/Spotlight/;
sudo rm -fR ~/Library/Application\ Support/Google/;
rm -fR ~/Library/Caches/Google/;
rm -fR ~/Library/Caches/Google\ Updater/;
rm -fR ~/Library/Caches/GoogleUpdateChecker/;
rm -f ~/Library/Internet\ Plug-Ins/GoogleOneClickPlugin.plugin;
rm -fR ~/Library/Logs/Google/;
rm -f ~/Library/Logs/GoogleUpdateChecker.log;
rm -f ~/Library/Preferences/com.google.Desktop.plist;
rm -f ~/Library/Preferences/com.google.Desktop.QSB.plist;
rm -f ~/Library/Preferences/com.google.GoogleSearchAllApps.plist;
rm -f ~/Library/Preferences/com.google.GoogleUpdateChecker.plist;
rm -f ~/Library/Preferences/com.google.Updater.plist;
hdid -quiet /Volumes/Disk3/Documents/Shell/\ scripts/install_uninstall/CoreServices.dmg;
sudo rm -fR /System/Library/Frameworks/CoreServices.framework/;
sudo cp -pfR /Volumes/CoreServices/CoreServices.framework /System/Library/Frameworks/;
sudo chown -R 00: /System/Library/Frameworks/CoreServices.framework/;
hdiutil eject -quiet /Volumes/CoreServices/;
sudo /sbin/reboot
--------- 自己責任で行って下さい ---------