[blfs-support] gparted, polkit or not, logout
Fernando de Oliveira
famobr at yahoo.com.br
Fri Dec 13 15:58:03 PST 2013
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
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
get the x-dialog, all is fine.
>From the menu, nothing happens, no message in any log, including the
Then, compared with
Then, created as in Arch:
gparted.desktop: (many lines, with, below, the important one)
$ cat /usr/sbin/gparted_polkit
if [ $(which pkexec) ]; then
pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
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:
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.
More information about the blfs-support