Check for pkexec >= 0.102 which supports execution of X11 apps (#776437)
On CentOS 6 with polkit version 0.96 pkexec fails to execute gparted shell wrapper as root like this: $ env | grep DISPLAY DISPLAY=:0.0 $ sh -x /usr/local/bin/gparted ... + pkexec /usr/local/bin/gparted (gpartedbin:8011): Gtk-WARNING **: cannot open display: This is because polkit didn't support setting the DISPLAY environment variable to allow execution of X11 applications until the introduction of the allow_gui annotation by this commit in polkit 0.102: https://cgit.freedesktop.org/polkit/commit/?id=7850d27017fed1834268a852350ae85381fbb110 Bug 38769 - pkexec: Support running X11 apps Make configure only use pkexec version 0.102 or higher as the privilege escalation program. Otherwise configure falls back to checking for the other privilege escalation programs as it did before. Bug 776437 - GParted fails to run as root under Wayland
parent
2f559ec3
Please register or sign in to comment