Page MenuHomePhabricator

replace kdesudo with su-to-root in documentation
Open, NormalPublic

Description

Rather than using.

kdesudo kate ...

Which is KDE specific. What about changing documentation to.

su-to-root -X -c kate ...

That command is slightly more complicated (just the extra -X -c), but that command is agnostic about the desktop environment. Other desktop environments such as Gnome that come with gksudo by default would then be easier to use.

If that sounds good, I could easily and quickly mass search and replace that string in the wiki thanks to the replace text mediawiki extension.

Status:

Details

Impact
Needs Triage

Event Timeline

Patrick raised the priority of this task from to Needs Triage.
Patrick triaged this task as Normal priority.
Patrick updated the task description. (Show Details)
Patrick updated the task description. (Show Details)
Patrick added a subscriber: Patrick.

Not all that simple, because su-to-root lacks support for passing command line arguments to applications.

In T22#834, @Patrick wrote:

Not all that simple, because su-to-root lacks support for passing command line arguments to applications.

I was wrong. We could use something like following example. With quotes. The syntax is not a pretty due to quotes. (Working on a patch: T85)

su-to-root -X -c 'whonix-setup-wizard setup'
su-to-root -X -c "kate /etc/apt/sources.list"

Unfortunately, su-to-root does not prefer kdesudo (that honors /etc/sudoers.d) over gksu (that does not). TODO: consider shipping a config file that prefers kdesudo or writing a patch upstream that gives higher priority to kdesudo for the su tool autodetection code.

TODO: consider shipping a config file that prefers kdesudo or writing a patch upstream that gives higher priority to kdesudo for the su tool autodetection code.

Done:

Let's consider adding the following /etc/su-to-rootrc [using config-package-dev] to the usability-misc package for Whonix 12:

## This file is part of Whonix.
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

## For better usability.
## Using this until/if Debian upstream feature request
## su-to-root: higher priority for kdesudo and gksudo
## https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=793376
## gets implemented.
## Otherwise su-to-root would default to gksu, which always
## asks for a password and ignores /etc/sudoers(.d).
## Feel free to delete this file or to change its settings.

SU_TO_ROOT_X=kdesudo