Just wanted to share a code snippet that allowed me to use xrdp with Jetpack 5.1.1 and Gnome:
In file .xsessionrc
replace lines 82-92 with following:
if [ -e "/usr/bin/gnome-shell" ]; then
remove_apps="thunderbird rhythmbox libreoffice-writer"
favorite_apps="$(gsettings get org.gnome.shell favorite-apps)"
for app in $remove_apps; do
favorite_apps="$(echo "${favorite_apps}" | sed -e "s/'${app}.desktop', //g" -e "s/, '${app}.desktop' / /g")"
done
gsettings set org.gnome.shell favorite-apps "${favorite_apps}"
fi
This makes the .xessionrc
file compatible with sh
which seems to be used to run the script when starting a session using xrdp.
To set the session mode to Ubuntu instead of vanilla Gnome you can append these lines to the .xsessionrc
This allows you to get back the tegrastats widget and the overall more beautiful desktop.
export GNOME_SHELL_SESSION_MODE=ubuntu
export XDG_CURRENT_DESKTOP=ubuntu:GNOME
export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg