To my knowledge I thought that Wayland specifications don’t allow running multiple privileges windows, till I tested on Ubuntu QEMU (since I can’t use Wayland on host --see NVIDIA) and these are my observations
On Silverblue 31 w Wayland (QEMU)
1. Running “sudo nautilus” will fail with:
Error on getting connection: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY
Unable to init server: Could not connect: Connection refused
2. Running “nautilus admin://” will fail with:
Error on getting connection: Failed to load SPARQL backend: Cannot autolaunch D-Bus without X11 $DISPLAY
Unable to init server: Could not connect: Connection refused
3. Opening “admin://” from location bar: It just works!
On Ubuntu 20.04 w Wayland (QEMU)
1. Running “sudo nautilus” will work:
but the window will use the XWayland backend, instead of native Wayland
Why?
Can someone please explain, whats the correct behavior?
- Can we open different user windows on Wayland?
- Why “sudo gui_app” works in Ubuntu but not in SIlverblue?
- Why “sudo gui_app” uses XWayland and not Wayland?