Gksu in 14.04?
Tom H
tomh0665 at gmail.com
Wed Aug 6 21:47:34 UTC 2014
On Wed, Aug 6, 2014 at 5:20 PM, MR ZenWiz <mrzenwiz at gmail.com> wrote:
> On Wed, Aug 6, 2014 at 1:39 PM, Tom H <tomh0665 at gmail.com> wrote:
>>
>> It works with
>>
>> pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY XDG_RUNTIME_DIR=/tmp nautilus
>>
>> from a terminal (but not from alt-f2!).
>
> Thanks again.
>
> When I first tried pkexec thunar, it failed as Chris described, but
> after I ran it with your suggestion above, that worked, and it also
> works without the env spec.
>
> I did find it also interesting that all those variables are already in
> my environment, so I'm not sure why it didn't work the first time
> without the env... extension added.
You're welcome.
Those variables are in your environment but in the above command,
you're setting them for root.
>From a security perspective, it'll be better to set something other
than "/tmp" as XDG_RUNTIME_DIR. I was just testing and forgot to
mention it earlier.
More information about the ubuntu-users
mailing list