Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update uninstall & installer params

  • Loading branch information...
commit 6e280ddca138b585bc0487c777c5fcee080b44f1 1 parent 80ced61
@tekezo authored tekezo committed
View
9 files/extra/uninstall.sh
@@ -24,7 +24,12 @@ rm -rf /Library/org.pqrs/KeyRemap4MacBook
rm -rf /Library/PreferencePanes/KeyRemap4MacBook.prefPane
-rm -ff /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*
-rm -ff /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
+rm -f /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
+rm -f /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*
+
+# ----------------------------------------
+# kill processes
+killall KeyRemap4MacBook_server
+
exit 0
View
2  pkginfo/Info.plist
@@ -45,7 +45,7 @@
<false/>
<key>IFPkgFlagRestartAction</key>
- <string>NoRestart</string>
+ <string>RecommendedRestart</string>
<key>IFPkgFlagRootVolumeOnly</key>
<true/>
View
2  pkginfo/Info.plist.tmpl
@@ -45,7 +45,7 @@
<false/>
<key>IFPkgFlagRestartAction</key>
- <string>NoRestart</string>
+ <string>RecommendedRestart</string>
<key>IFPkgFlagRootVolumeOnly</key>
<true/>
View
2  pkginfo/Resources/postflight
@@ -4,6 +4,4 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH
startup="/Library/org.pqrs/KeyRemap4MacBook/scripts/startup.sh"
[ -f "$startup" ] && "$startup" quickstart
-launchctl load /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.server.plist
-
exit 0
View
9 pkginfo/Resources/preflight
@@ -20,7 +20,12 @@ done
# uninstall
rm -rf /Library/StartupItems/KeyRemap4MacBook
rm -rf /Applications/KeyRemap4MacBook
-rm -rf /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
-rm -rf /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*
+rm -f /Library/LaunchAgents/org.pqrs.KeyRemap4MacBook.*
+rm -f /Library/LaunchDaemons/org.pqrs.KeyRemap4MacBook.*
+
+# ----------------------------------------
+# kill processes
+killall KeyRemap4MacBook_server
+
exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.