Updated macOS Auto‐Start Service Setup (for Remote MDM Deployment) (markdown)

fufesou
2026-02-25 12:12:37 +08:00
parent 014d2789c7
commit bc37328ccd

@@ -485,14 +485,19 @@ Edit the `DEFAULTPATH` variable at the top of the script:
DEFAULTPATH='/Applications/MyCustomApp.app'
```
<img width="450" alt="image" src="https://github.com/user-attachments/assets/bd04eb3b-88b2-4d6f-92c1-4f769587b35c" />
`MyCustomApp.app` should be replaced with your actual application name followed by `.app`.
For example, using the settings above, the path would be `/Applications/Test2.app`.
Everything else (app name, plist labels, config paths) is auto-derived from this single path:
| Item | Example (`DEFAULTPATH = /Applications/MyApp.app`) |
|------|---------------------------------------------------|
| APP_NAME | `MyApp` |
| Plist label | `com.carriez.MyApp_service` / `com.carriez.MyApp_server` |
| Config dir | `~/Library/Preferences/com.carriez.MyApp/` |
| Config files | `MyApp.toml`, `MyApp2.toml` |
| APP_NAME | `MyCustomApp` |
| Plist label | `com.carriez.MyCustomApp_service` / `com.carriez.MyCustomApp_server` |
| Config dir | `~/Library/Preferences/com.carriez.MyCustomApp/` |
| Config files | `MyCustomApp.toml`, `MyCustomApp2.toml` |
> The app's bundle identifier (e.g., `com.mycompany.myapp`) does not affect these paths. RustDesk always uses `com.carriez.<APP_NAME>` internally.