gdm

Comment 74 for bug 1652282

Revision history for this message
In , Mike Fleetwood (mfleetwo) wrote :

Hi Curtis,

Push patchset v2 upstream when ready.

Thank you for your through testing on lots of distros.

The results on Ubuntu 14.04 LTS look odd though.
> Distro gparted sudo gparted gparted.desktop
> ------------ ---------------- ------------ ----------------
> Ubuntu 14.04 Root needed msg Works Root needed msg

That would be the case if no graphical SU program was found during
configure. My Ubuntu 14.04 LTS (XFCE) VM does have polkit 0.105
installed and pkexec is found during configure. I did both:
    ./configure --prefix=/usr/local
    ./configure --prefix=/usr/local --enable-xhost-root
along with additionally installing the action file:
    sudo install -m 644 org.gnome.gparted.policy \
         /usr/share/polkit-1/actions/org.gnome/gparted.local.policy
and made sure that I uninstalled Ubuntu provided gparted package (so
that there was only one gparted.desktop file for the desktop to choose
from and/or display). In both cases (with and without
--enable-xhost-root) it all worked.

Distro gparted sudo gparted gparted.desktop
------------ ---------------- ------------ ----------------
Ubuntu 14.04 Works Works Works

Here's an updated Release Notes section of NEWS mentioning about
possibly having to manually install the polkit action file.

Release Notes
-------------

Provides an interim workaround to allow GParted to run under Wayland by
using xhost to grant and revoke root access to the X11 display. This
must be enabled while building the software with:
    ./configure --enable-xhost-root

Pkexec from polkit has been made the first choice graphical SU program
as all the desktops have settled on using polkit as the privileged
access mechanism. See "Installing polkit's Action File" section in the
README file for when an additional installation step may be needed.
Also execution of the graphical SU program has been moved from
gparted.desktop to the gparted shell wrapper. Therefore gparted can be
run either by an unprivileged user or by root and as such is installed
in $prefix/bin rather than $prefix/sbin. This additionally means
distributions can drop their pkexec scripts used to launch gparted.

Thanks,
Mike