[Bug 997506] [NEW] pkexec cannot run graphical applications when using KDM as display manager

Launchpad Bug Tracker 997506 at bugs.launchpad.net
Thu May 10 10:13:00 UTC 2012


You have been subscribed to a public bug:

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.

** Affects: kde-workspace (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
pkexec cannot run graphical applications when using KDM as display manager
https://bugs.launchpad.net/bugs/997506
You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kde-workspace in Ubuntu.




More information about the kubuntu-bugs mailing list