Lock Screen Server 12.10
Oliver Grawert
ogra at ubuntu.com
Wed Feb 6 11:43:35 UTC 2013
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 ....
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130206/7008a2aa/attachment.sig>
More information about the ubuntu-users
mailing list