# Session GNOME ouverte par xrdp : contrairement à GDM, xrdp ne définit pas
# XDG_CURRENT_DESKTOP avant /etc/X11/Xsession. im-config (70im-config_launch)
# ne reconnaît alors pas GNOME (DESKTOP_SETUP_IBUS) et lance lui-même
# ibus-daemon avant gnome-session ; ibus active xdg-desktop-portal avant
# graphical-session.target, xdg-desktop-portal-gnome échoue ("dependency")
# et le portail reste bloqué ~50 s : Nautilus/bureau et gnome-terminal
# attendent chacun 25 s (délai D-Bus) - constaté en réel. Sourcé par
# Xsession (sh), doit passer avant 70im-config_launch.
if [ -n "$XRDP_SESSION" ] && [ -z "$XDG_CURRENT_DESKTOP" ]; then
    XDG_CURRENT_DESKTOP=GNOME
    export XDG_CURRENT_DESKTOP
fi
