move --server check into daemon.plist

This commit is contained in:
rustdesk committed 2024-06-19 19:54:30 +08:00
1 parent adf0226641
commit d75caad71f
2 files changed
+3 -3

No files matched your search

+1 -1
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/>