Turns out /etc/pam.d/policykit-1 needs that line. ** Package changed: kde-workspace (Ubuntu) => policykit-1 (Ubuntu)
-- You received this bug notification because you are a member of Desktop Packages, which is subscribed to policykit-1 in Ubuntu. https://bugs.launchpad.net/bugs/997506 Title: pkexec cannot run graphical applications when using KDM as display manager Status in “policykit-1” package in Ubuntu: Confirmed Bug description: After reporting this bug for policykit (https://bugs.freedesktop.org/show_bug.cgi?id=49707) and then doing the same for KDM (https://bugs.kde.org/show_bug.cgi?id=299718) the problem the problem seems to be distribution specific. In short: * I created a policykit action containing org.freedesktop.policykit.exec.allow_gui * when trying to run this application it works well when using GDM as display manager but KDM puts this message: No protocol specified No protocol specified (grub-customizer:2002): Gtk-WARNING **: cannot open display: :0 * the KDM developers was telling me that this is a configuration issue (I've tried on a frash installed Kubuntu) and I just have to add "session optional pam_xauth.so" to /etc/pam.d/{sudo,su}. Finally I added this line to /etc/pam.d/comman_auth and everything worked well. Please add this option by default. Otherwise pkexec is broken on allmost all Kubuntu installations and cannot run applications like synaptic without doing tricks like "X-KDE-SubstituteUID=true" on the .desktop file. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/policykit-1/+bug/997506/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

