Have been following the discussion, but have some differences. I like to use
sudo -A /usr/sbin/gparted %f Have this in the desktop file, also. But it needs some configuration of sudo cat > /etc/sudo.conf << "EOF" # Path to askpass helper program /usr/share/applications/gparted.desktop EOF and the ask-pass program from openssl for the x-dialog, as I included a quick suggestion in gparted page. Can use sudo -A for any graphical program, from an "execute" dialog (present in lxde menu) or .desktop file. Just that sudo.conf configuration will work for all. This is particularly more simple than haven a polkit file for each package that needs rot privilege. But wanted to understand the polkit way. Can run from terminal pkexec gparted get the x-dialog, all is fine. >From the menu, nothing happens, no message in any log, including the ~/.x-errors. Then, compared with Ubuntu: /usr/bin/gparted-pkexec ArchLinux: /usr/bin/gparted_polkit Then, created as in Arch: gparted.desktop: (many lines, with, below, the important one) Exec=/usr/sbin/gparted_polkit %f $ cat /usr/sbin/gparted_polkit #!/bin/bash if [ $(which pkexec) ]; then pkexec --disable-internal-agent "/usr/sbin/gparted" "$@" else /usr/sbin/gparted "$@" fi This works. The polkit fle, of course, gives root privilege to gparted, not to gparted_polkit. Why is that, I do not know. Another which woks is the .desktop installed by gparted, if I change: s/Terminal=false/Terminal=true/ But then, first, a terminal appears and the the x-dialog is launched. However, now, I have polkit working as expected with Linux-PAM and consolekit, and for the first time, since I stopped using HAL, I have a complete logout dialogue in LXDE, with all options, Shutdown and Reboot working as they should. -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page