try watching trash for lokinet-gui.app and delete ourself if we see it

This commit is contained in:
Jeff Becker 2020-11-13 13:08:25 -05:00 committed by Jason Rhinelander
parent 41311c020a
commit 3b3374fa4c
1 changed files with 14 additions and 5 deletions

View File

@ -20,11 +20,20 @@
</dict>
</dict>
<key>StandardOutPath</key>
<string>/var/lib/lokinet/stdout</string>
<!-- acursed things to watch if the gui is deleted to uninstall lokinet -->
<key>WatchPaths</key>
<array>
<string>~/.Trash/LokinetGUI.app</string>
</array>
<key>ProgramArguments</key>
<array>
<string>/opt/lokinet/bin/lokinet_uninstall.sh</string>
</array>
<key>StandardErrorPath</key>
<string>/var/lib/lokinet/stderr</string>
<key>StandardOutPath</key>
<string>/var/lib/lokinet/stdout</string>
<key>StandardErrorPath</key>
<string>/var/lib/lokinet/stderr</string>
</dict>
</plist>