1 | #!/usr/bin/env bash |
---|
2 | |
---|
3 | # flocate -a x11 | egrep -v -e /opt/local -e MacPorts -e Xcode \ |
---|
4 | -e CrossOver.app -e Kindle\ Previewer.app -e Wineskin \ |
---|
5 | -e smartbuild -e Frameworks |
---|
6 | |
---|
7 | set -x |
---|
8 | |
---|
9 | launchctl unload /Library/LaunchAgents/org.macosforge.xquartz*.plist |
---|
10 | launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz*.plist |
---|
11 | |
---|
12 | rm -rfv /Applications/Utilities/XQuartz.app \ |
---|
13 | /Applications/Utilities/X11.app \ |
---|
14 | /Library/*/org.macosforge.xquartz.* \ |
---|
15 | /Users/david/Library/Caches/*X11* \ |
---|
16 | /Users/david/Library/Saved\ Application\ State/org.macosforge.xquartz.X11* \ |
---|
17 | /usr/X11 /usr/X11R6 /opt/X11 \ |
---|
18 | /Users/david/Library/Preferences/org.macosforge.xquartz.X11.plist \ |
---|
19 | $(find /private -name '*X11*') \ |
---|
20 | $(find /private -name '*xquartz*') |
---|
21 | |
---|
22 | pkgutil --forget org.macosforge.xquartz.pkg |
---|