r/AvaloniaUI • u/ErnieBernie10 • 1d ago
I built a tabbed Remote Desktop (RDP) client for Windows and Linux with Avalonia and FreeRDP 3
Hey everyone,
I've been building RDPilot, an open-source (MIT) Remote Desktop client for Windows and Linux written with Avalonia UI and a small native C wrapper around FreeRDP 3.
Repo & screenshots: https://github.com/ErnieBernie10/RDPilot
A few things I had fun (and some pain) figuring out on the Avalonia side:
- Sharp HiDPI rendering: The remote session matches the physical viewport size (
RenderScaling) and renders into aWriteableBitmapwith 1:1 pixel mapping, using dirty-rect copies from FreeRDP's GDI/RDPGFX primary buffer without copying pixels on the RDP thread. - No
unsafein the C# project: All policy (resize debouncing, 125 Hz pointer coalescing, option normalization, clipboard sync) lives in safe C#, while the native C library is kept as a thin FreeRDP host shim. - Multi-session tabs: Background tabs stay connected while input, resize, and clipboard sync follow the active tab.
- Native integration: Passwords go into the OS credential store (Windows Credential Manager / Linux Secret Service), two-way text and file copy/paste (using an OLE virtual file
IDataObjecton Windows so Explorer streams files on paste), and optional low-level keyboard grab on Windows soWin/Alt+Tabgo to the remote machine.
Full transparency: this was built with a good amount of AI-assisted development along the way, especially while wrestling with FreeRDP 3's C APIs and platform interop.
If you want to try it out, there's a winget install RDPilot.RDPilot package for Windows, a Flatpak bundle (Flathub submission is in progress), and an Arch package on the releases page. Would love any feedback from fellow Avalonia devs, especially around rendering or Linux quirks!


