Since this bug was filed, FreeRDP 3.32 added out-of-process sign-in helpers
(client/common/aad-helper-protocol.md). The xdg-open one,
WITH_XDG_AAD_AUTH_HELPER, needs neither WebKitGTK nor Qt WebEngine: it is a
Python script that opens the sign-in in the system browser and receives the
ms-appx-web:// redirect through an x-scheme-handler .desktop file it
registers in the user's ~/.local/share/applications. FreeRDP's own packaging
enables it (upstream PR #13413, merged 2026-09-15, for the nightly deb, the
Flatpak and the RPM), and the client finds it without any option, as
autodetection is on by default.

Without a helper the sign-in falls back to printing a URL and asking for the
redirect address to be pasted back, twice per connection to Azure Virtual
Desktop (the gateway and the session host). Each code is short-lived, and the
connection to the gateway sits idle while the user signs in, so in our use
the paste often failed. With the helper it needs no copying.

We rebuild the package with it, on Ubuntu 24.04 and 26.04 (3.32.2 and
3.33.1). The changes, against 3.33.1+dfsg:

- debian/rules: -DWITH_XDG_AAD_AUTH_HELPER=ON, and
-DCMAKE_INSTALL_LIBEXECDIR=libexec so the helper lands in /usr/libexec,
where the client looks for it;
- the X11 client's .install: usr/libexec/freerdp-xdg-aad-helper and
usr/libexec/freerdp-aad-handler (the SDL and Wayland clients would use the
same files, so a small shared package may suit Debian better);
- that package's Depends: python3, xdg-utils, desktop-file-utils (the helper 
runs xdg-open, xdg-mime and update-desktop-database).

Robert Burckner
Millabs Corporation
(571) 730-7459
www.millabs.net

On Thursday, December 3rd, 2026 at 8:49 AM, Robert Burckner <[email protected]> 
wrote:

> Since this bug was filed, FreeRDP 3.32 added out-of-process sign-in helpers 
> (client/common/aad-helper-protocol.md). The xdg-open one, 
> WITH_XDG_AAD_AUTH_HELPER, needs neither WebKitGTK nor Qt WebEngine: it is a 
> Python script that opens the sign-in in the system browser and receives the 
> ms-appx-web:// redirect through an x-scheme-handler .desktop file it 
> registers in the user's ~/.local/share/applications. FreeRDP's own packaging 
> enables it (upstream PR #13413, merged 2026-09-15, for the nightly deb, the 
> Flatpak and the RPM), and the client finds it without any option, as 
> autodetection is on by default.
>
> Without a helper the sign-in falls back to printing a URL and asking for the 
> redirect address to be pasted back, twice per connection to Azure Virtual 
> Desktop (the gateway and the session host). Each code is short-lived, and the 
> connection to the gateway sits idle while the user signs in, so in our use 
> the paste often failed. With the helper it needs no copying.
>
> We rebuild the package with it, on Ubuntu 24.04 and 26.04 (3.32.2 and 
> 3.33.1). The changes, against 3.33.1+dfsg:
> - debian/rules: -DWITH_XDG_AAD_AUTH_HELPER=ON, and  
> -DCMAKE_INSTALL_LIBEXECDIR=libexec so the helper lands in /usr/libexec, where 
> the client looks for it;
> - the X11 client's .install: usr/libexec/freerdp-xdg-aad-helper and  
> usr/libexec/freerdp-aad-handler (the SDL and Wayland clients would use the 
> same files, so a small shared package may suit Debian better);
> - that package's Depends: python3, xdg-utils, desktop-file-utils (the helper 
> runs xdg-open, xdg-mime and update-desktop-database).
>
> Robert Burckner
> Millabs Corporation
> (571) 730-7459
> www.millabs.net

Reply via email to