docs: add optional step for auto-starting Chrome and RustDesk on login

This commit is contained in:
Gitead
2026-07-19 22:26:23 -04:00
parent 6062b646ce
commit 78ee0b92fe

View File

@@ -330,6 +330,40 @@ rustdesk --password YOUR_STRONG_PASSWORD
On the connecting device, install RustDesk and enter this machine's ID and password to connect.
### Step 18 — Auto-start Chrome and RustDesk on login (optional)
Pairs well with [Step 1's auto-login](#step-1--enable-auto-login-lxqt--sddm) — the PC boots straight to the desktop with Chrome open and the RustDesk tray icon visible, no manual clicks needed.
> The RustDesk **core service** (`rustdesk.service`) is already enabled at install time and runs at boot as root — remote access works even before anyone logs in. This step only adds the tray icon, which requires a logged-in desktop session.
LXQt reads autostart entries from `~/.config/autostart/`. Create one `.desktop` file per app:
```sh
mkdir -p ~/.config/autostart
cat > ~/.config/autostart/google-chrome.desktop <<'EOF'
[Desktop Entry]
Type=Application
Name=Google Chrome
Exec=/usr/bin/google-chrome-stable
Icon=google-chrome
Terminal=false
X-GNOME-Autostart-enabled=true
EOF
cat > ~/.config/autostart/rustdesk-tray.desktop <<'EOF'
[Desktop Entry]
Type=Application
Name=RustDesk Tray
Exec=/usr/bin/rustdesk --tray
Icon=rustdesk
Terminal=false
X-GNOME-Autostart-enabled=true
EOF
```
Log out and back in (or reboot) to verify — Chrome should open on its own and the RustDesk tray icon should appear.
---
## 📖 Developer Documentation