move --server check into daemon.plist

This commit is contained in:
rustdesk
2024-06-19 19:54:30 +08:00
parent adf0226641
commit d75caad71f
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>sleep 3; /Applications/RustDesk.app/Contents/MacOS/RustDesk --service</string>
<string>sleep 3; if pgrep -f '/Applications/RustDesk.app/Contents/MacOS/RustDesk --server' > /dev/null; then /Applications/RustDesk.app/Contents/MacOS/RustDesk --service; fi</string>
</array>
<key>RunAtLoad</key>
<true/>