Lock Screen Server 12.10

Joep L. Blom jlblom at neuroweave.nl
Wed Feb 6 13:16:23 UTC 2013


On 06/02/13 12:57, Colin Law wrote:
> On 6 February 2013 11:43, Oliver Grawert <ogra at ubuntu.com> wrote:
>> Am Mittwoch, den 06.02.2013, 11:33 +0000 schrieb Colin Law:
>>> On 6 February 2013 10:42, Oliver Grawert <ogra at ubuntu.com> wrote:
>>>>> ...
>>>>> The difference between gksu/gksudo (they're the same by default, at
>>>>> least on Ubuntu) and pkexec is that pkexec's permissions are more
>>>>> granular because they use polkit's rules.
>>>>>
>>>> sorry if the words confused anyone, gksu is not being used in any (but
>>>> two that were just fixed in raring) apps in the default desktop install
>>>> since a few releases already. gksu has massive probs with accessibility
>>>> (grabs the whole screen and steals the focus, so screen readers as well
>>>> as onscreen keyboards have issues). since all apps in the default
>>>> desktop switched to use pkexec instead, gksu will be gone from the
>>>> default installation with 13.04 ... if you dont want to manually install
>>>> gksu all the time, better get used to the preinstalled pkexec ...
>>>>
>>>> the one disadvantage of pkexec is that unlike su/gksu it doesnt keep an
>>>> authentication token for 10 minutes so all subsequent authentications in
>>>> a script or app will pop up the password dialog again ...
>>>>
>>>> hope that clearifies it, indeed there is nothing wrong with using gksu,
>>>> but you will have to manually install it i the future and it hasnt been
>>>> actually used in the distro default setup for a while ...
>>>
>>> Should I be able to do this?
>>>
>>> $ pkexec gedit /etc/fstab
>>> No protocol specified
>>>
>>> ** (gedit:7280): WARNING **: Could not open X display
>>> Cannot open display:
>>> Run '/usr/bin/gedit --help' to see a full list of available command
>>> line options.
>>>
>> add a DISPLAY=:0 in front if you dont call it from an X terminal ....
>
> I am trying from gnome terminal, is that not an X terminal?  But with
> DISPLAY setting it still fails
>
> $ DISPLAY=:0 pkexec gedit /etc/fstab
> No protocol specified
> ** (gedit:8459): WARNING **: Could not open X display
> Cannot open display:
>
> Colin
>
>>
>
+1
I get exactly the same error as Colin (using Xubuntu on 12.04).
Joep




More information about the ubuntu-users mailing list