"exported surface had an invalid role" protocol errors from xdg_exporter when opening files
It seems the commit adding stable xdg-shell support slipped in a small mistake in the error paths of xdg_exporter.export, resulting on nautilus/polari/etc closing due to protocol error when you open something through them, as the check is done, any surface type results in a protocol error being raised.