summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2016-10-30 06:21:53 +0000
committerSimon Lees <sflees@suse.de>2019-03-27 17:47:52 +1030
commit0801b7104c46ac2eff07bf8b867f7d45c74963c2 (patch)
treec26ab49c1adf0426f0de5167798a2a15c349358e
parent186966735dcccd61afde937118f27043bd084f57 (diff)
xdg-su: fix some easy TODOs
Although xdg-su is not currently shipped, fix some trivial documentation TODOs. Signed-off-by: Simon Lees <sflees@suse.de>
-rw-r--r--TODO3
-rw-r--r--scripts/desc/xdg-su.xml11
2 files changed, 10 insertions, 4 deletions
diff --git a/TODO b/TODO
index 183ea6c..a4f3b17 100644
--- a/TODO
+++ b/TODO
@@ -16,9 +16,6 @@ General
* Add xdg-autostart
xdg-su:
-* The summary is incorrect, it suggests that it can only run things as
-root which is incorrect according to the main body of the document.
-* The -c option is listed in the synopsis, but not in options.
* It would be useful if it was possible to distinguish between a failure
because of a bad password or some other failure.
* use sudo style syntax, drop -c option
diff --git a/scripts/desc/xdg-su.xml b/scripts/desc/xdg-su.xml
index 53a0f32..b4e1b7e 100644
--- a/scripts/desc/xdg-su.xml
+++ b/scripts/desc/xdg-su.xml
@@ -30,7 +30,7 @@
<refnamediv>
<refname>xdg-su</refname>
- <refpurpose>run a GUI program as root after prompting for the root password</refpurpose>
+ <refpurpose>run a GUI program as another user (typically root) after prompting for that user's password</refpurpose>
</refnamediv>
<refsynopsisdiv>
@@ -68,6 +68,15 @@
<title>Options</title>
<variablelist>
<varlistentry>
+ <term><option>-c <replaceable>command</replaceable></option></term>
+ <listitem>
+ <simpara>
+ the command to run. This argument is mandatory.
+ </simpara>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>-u <replaceable>user</replaceable></option></term>
<listitem>
<simpara>