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 created this task.Nov 26 2014, 2:25 AM
Patrick updated the task description. (Show Details)
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 added a subscriber: Patrick.
Patrick moved this task from Backlog to after release on the Whonix 10 board.Dec 8 2014, 11:23 PM

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

Patrick set Impact to Needs Triage.Jul 22 2015, 4:02 PM
Patrick added subscribers: troubadour, HulaHoop.
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
Patrick updated the task description. (Show Details)May 8 2018, 9:25 PM
Patrick edited projects, added usability, upstream; removed user documentation.