Oh, I forgot I already wrote about waypipe, regarding 3d games. Almost 5 years ago!
Now the boring part. If you log into a machine where a Wayland session is already active – I often log into my home machines remotely – any Gtk program will show on the Wayland desktop. So you use “waypipe ssh $HOST
” which is cool and works like a breeze but adding those lines to your .bashrc helps when you are not using a wayland session (i.e. Windows):
if [ -n "$SSH_CLIENT" ]; then
if [ -n "$WAYLAND_DISPLAY" ]; then
echo "Remote session with waypipe, everything will be OK"
else
echo "Remote session, forcing GTK to X11"
export GDK_BACKEND=x11
fi
fi