I’m getting started with WSLg, and I can run apps like nautilus OK, but I can’t run them as root.
If I run it with the Windows “Run as administrator” option, then the app just seems to run as a normal user:
(base) ian@IansDesktop:~$ sudo ps aux | grep nautilus
ian 521 4.0 0.8 573876 70432 pts/1 Ssl+ 21:55 0:14 nautilus --new-window
If I try to run from the terminal with sudo
it exits with an error:
(base) ian@IansDesktop:~$ sudo nautilus --new-window
** (org.gnome.Nautilus:1025): WARNING **: 22:02:15.647: Error on getting connection: Failed to load SPARQL backend: Error spawning command line ?dbus-launch --autolaunch= --binary-syntax --close-stderr?: Child process exited with code 1
How can I start a WSLg app as root?