I've been using Ubuntu for well over a decade. In recent years, I've mostly had to make just minor tweaks to my system to keep it running exactly as I wanted. I've paid little attention to the development of Aardvark. I've installed 17.10 and faced the prospect of having to spend time adjusting to GNOME. I am pretty happy with the new version, it's just a bit of a learning curve.
As the beta testers know, running apps as root in Wayland poses some problems. Wayland prefers not to allow unrestricted access by root - preferring access through policies. Graphical apps are slowly adapting to this, but many still aren't allowing pkexec or gksu.
For me, gedit, geany, bleachbit and gparted initially have not worked with "gksu" or "pkexec"t. From searching online, apparently Version .30 of gparted has fixed the issue (.28 is our 17.10 version).
The current workaround in Wayland is to run the following command to allow some of the aforementioned apps to be run with gksu:
if [ $XDG_SESSION_TYPE = "wayland" ]; then xhost +si:localuser:root; fi
Note: You can simplify the command but the above acknowledges that not everyone will start 17.10 using GNOME.
So far, as of this morning, gksu will then work with: geany, gparted, gedit, synaptic; pkexec will then work with: gparted but not the others.
Is there a better way to handle running these apps as root?
Happy Ubuntu-ing!



Adv Reply



Bookmarks