#!/bin/bash
set -euo pipefail

# lamco-rdp-server — native Wayland RDP server (Rust, H.264, VA-API)
# Builds from AUR; requires cargo, clang, cmake, nasm (auto-pulled as makedeps)
yay -S --answerdiff None --answerclean All --noconfirm lamco-rdp-server

# Runs as a systemd user service (session-scoped, D-Bus activated)
systemctl --user enable lamco-rdp-server.service

echo "lamco-rdp-server enabled as a user service."
echo "Start it with:  systemctl --user start lamco-rdp-server"
echo "Or launch the GUI tray:  lamco-rdp-server-gui"
echo ""
echo "Optional: install a matching xdg-desktop-portal for your compositor:"
echo "  xdg-desktop-portal-hyprland / -wlr / -gnome / -kde"
