Comment 75 for bug 1652282

Revision history for this message
In , Curtis Gedak (gedakc) wrote :

Hi Mike,

Thank you for the updated NEWS text and for the tip about your Ubuntu
14.04 testing.

I investigated and discovered that I had installed an older version
into /usr/local. Since this older version was first in the path, my
tests were running the older version. Testing with only patch set v2
installed revealed the same results as you (it all worked).

Following are some changes I made to the NEWS announcement to try to
highlight that installation locations are different. Please feel free
to suggest further updates.

*** BEGIN ***

ATTENTION PACKAGERS:

The install location has changed for both the gparted script and the
gpartedbin executable.

This release 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 changed is that 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.

*** END ***

Patch set v2 from comment #19 has been committed to the git repository
for inclusion in the next release of GParted.

The relevant git commits can be viewed at the following links:

Move root privilege escalation into gparted wrapper script (#776437)
https://git.gnome.org/browse/gparted/commit/?id=a2cc5014c652a7e15b5460fa58d9680d146c6be4

Now install gparted wrapper script into $prefix/bin (#776437)
https://git.gnome.org/browse/gparted/commit/?id=778e21e94c9c5608a7087f31f1491e5744b864b8

Add detection of pkexec root privilege escalation program (#776437)
https://git.gnome.org/browse/gparted/commit/?id=b47528b6f976633b49be192ab8e4e8455f95b6e4

Add required polkit action file (#776437)
https://git.gnome.org/browse/gparted/commit/?id=f35e734a0c21869c5cdff61ffb2b5724e6ae431b

Only install polkit action file when pkexec is used (#776437)
https://git.gnome.org/browse/gparted/commit/?id=2f559ec3b5a95f8781979c80bd260ad952645f36

Check for pkexec >= 0.102 which supports execution of X11 apps (#776437)
https://git.gnome.org/browse/gparted/commit/?id=11c251293e6fd156b57905409efc5464bd85b202

Remove unnecessary autoconf check for pkexec --disable-internal-agent option (#776437)
https://git.gnome.org/browse/gparted/commit/?id=6f521c4d98e0fd6a33e40bd5910aacda89564126

Only when configured, grant root access to the X11 display (#776437)
https://git.gnome.org/browse/gparted/commit/?id=f38ccd028425552a1116180387e5307f23b8a688

Add .dirstamp to .gitignore
https://git.gnome.org/browse/gparted/commit/?id=576d0f7cbf5a8ef61840f17315e8c7b3f66d7a65

Curtis