# app-misc/remote-desktop-after-login

Starts GNOME Remote Desktop/VNC after a graphical desktop session logs in.

The package installs:

- `/etc/xdg/autostart/remote-desktop-after-login.desktop`
- `/usr/libexec/remote-desktop-after-login/start-gnome-remote-desktop`

The wrapper is intended for GNOME Wayland kiosk/game-station sessions, but is not tied to a specific account. It:

- fills missing session environment (`XDG_RUNTIME_DIR`, `WAYLAND_DISPLAY=wayland-0`, `DISPLAY`, `XAUTHORITY`)
- creates `$HOME/remote-desktop.pwd` with a random VNC password if missing or too long
- keeps that password file mode `0600`
- disables GNOME Remote Desktop RDP, because RDP clipboard may require kernel FUSE
- enables GNOME Remote Desktop VNC on TCP/5900 with password authentication
- starts `gnome-remote-desktop-daemon`

GNOME Remote Desktop credentials are separate GRD credentials, not PAM/local Linux login authentication. For VNC, the password is stored in `$HOME/remote-desktop.pwd` and is limited to 8 characters by the VNC backend.

The package intentionally does not install firewall rules. If VNC is enabled, GNOME Remote Desktop listens on TCP/5900 according to its own settings.
