gksudo 16.10

Tom H tomh0665 at gmail.com
Fri Nov 4 18:40:10 UTC 2016


On Fri, Nov 4, 2016 at 12:30 PM, Ralf Mardorf <silver.bullet at zoho.com> wrote:


> You can't install gksudo, but need to run an editor with root
> privileges? However, what should be the advantage of gksudo over sudo?
>
> apt update && apt install gksu

Exactly. There's no gksudo package. It's gksu that provides gksu and gksudo.

But gksu was deprecated a long time ago, but it was moved from "main"
to "universe" with 14.04 (LTS-wise; maybe it was moved earlier when
all releases are taken into account) probably because some DEs still
use it.

The correct and current tools are pkexec and sudo but you'd have to
ensure that DISPLAY and XAUTHORITY are preserved for a gui tool to
function properly. IIRC, you'd also need to define XDG_RUNTIME_DIR.


> Depending on the task, you anyway need to run xhost when either using
> sudo or gksudo, apart from this you could temporarily override the
> HOME variable.
>
> I never run gksudo, I always use sudo.
>
> In case gedit should cause an dconf issue run
>
> sudo rm /run/user/1???/dconf/user

Is this command safe? Wouldn't it remove non-gedit dconf settings too?




More information about the ubuntu-users mailing list