Gksu in 14.04?
Tom H
tomh0665 at gmail.com
Wed Aug 6 21:18:35 UTC 2014
On Wed, Aug 6, 2014 at 2:30 PM, Brandon Vincent <Brandon.Vincent at asu.edu> wrote:
> On Wed, Aug 6, 2014 at 11:15 AM, Chris <cpollock at embarqmail.com> wrote:
>>
>> What needs to be done to fix this issue?
>
> Per the documentation aforementioned:
>
> "As a result, pkexec will not allow you to run X11 applications as
> another user since the $DISPLAY and $XAUTHORITY environment variables
> are not set. These two variables will be retained if the
> org.freedesktop.policykit.exec.allow_gui annotation on an action is
> set to a nonempty value; this is discouraged, though, and should only
> be used for legacy programs."
Interesting, thanks.
On 14.04:
# grep allow_gui /usr/share/polkit-1/actions/*
com.canonical.xdiagnose.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
com.ubuntu.apport.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
com.ubuntu.release-upgrader.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
com.ubuntu.release-upgrader.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
com.ubuntu.update-notifier.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
org.debian.pkexec.gnome-system-log.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
org.freedesktop.policykit.pkexec.run-plainbox-job.policy: <annotate
key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
So it's being used by Ubuntu.
Looking at "org.freedesktop.policykit.pkexec.gnome-system-log.policy",
I created "/etc/polkit-1/localauthority/50-local.d/org.freedesktop.policykit.pkexec.{gedit,nautilus}.policy"
but they didn't work.
The pk function's better; but there must be a way using the polkit config files!
More information about the ubuntu-users
mailing list