summaryrefslogtreecommitdiff
path: root/docs/C
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2006-10-30 18:14:49 +0000
committerBrian Cameron <bcameron@src.gnome.org>2006-10-30 18:14:49 +0000
commita6865f4468460545f14784c8b7063ebbffbb2100 (patch)
treea91481d2dd6cbbb43794aff85ee5aebc9baec22f /docs/C
parent48320ec6774f9cb010631e636871ce5f167a093d (diff)
downloadgdm-a6865f4468460545f14784c8b7063ebbffbb2100.tar.gz
Add new QUERY_CUSTOM_CMD_LABELS and QUERY_CUSTOM_CMD_NO_RESTART_STATUS
2006-10-30 Brian Cameron <brian.cameron@sun.com> * config/gdm.conf.in, daemon/gdm.c, daemon/gdm.h, daemon/gdmconfig.c, docs/C/gdm.xml, gui/gdmlogin.c, gui/greeter/greeter.c, gui/greeter/greeter_item.c, gui/greeter/greeter_configuration.h, gui/greeter/greeter_system.c: Add new QUERY_CUSTOM_CMD_LABELS and QUERY_CUSTOM_CMD_NO_RESTART_STATUS commands and the new CustomCommandIsPersistent[0-9]
Diffstat (limited to 'docs/C')
-rw-r--r--docs/C/gdm.xml82
1 files changed, 77 insertions, 5 deletions
diff --git a/docs/C/gdm.xml b/docs/C/gdm.xml
index 9deeedcf..b36a3fd0 100644
--- a/docs/C/gdm.xml
+++ b/docs/C/gdm.xml
@@ -3999,6 +3999,23 @@ gdm:.my.domain
</varlistentry>
<varlistentry>
+ <term>CustomCommandIsPersistent[0-9]</term>
+ <listitem>
+ <synopsis>CustomCommandIsPersistent[0-9]=</synopsis>
+ <para>
+ Specifies if <filename>n-th</filename> &quot;Custom
+ Command&quot; will appear outside the login manager, for
+ example on the desktop through the Log Out/Shut Down dialogs.
+ If not specified the default value is &quot;false&quot;. This
+ option is only valid if corresponding
+ <filename>CustomCommand</filename> is defined. [0-9] represents
+ <filename>CustomCommand</filename> suffix and can be an integer
+ between 0 and 9.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>CustomCommandLabel[0-9]</term>
<listitem>
<synopsis>CustomCommandLabel[0-9]=</synopsis>
@@ -4006,10 +4023,11 @@ gdm:.my.domain
Specifies the stock label that will be displayed on the
<filename>n-th</filename> &quot;Custom Command&quot;
buttons and menu items. If not specified the default value is
- &quot;_Custom[0-9]&quot;. This option is only valid if
+ &quot;Custom_[0-9]&quot;. This option is only valid if
corresponding <filename>CustomCommand</filename> is defined.
[0-9] represents <filename>CustomCommand</filename> suffix
- and can be an integer between 0 and 9.
+ and can be an integer between 0 and 9. This option can't contain
+ any semicolon characters (i.e. &quot;;&quot;).
</para>
</listitem>
</varlistentry>
@@ -4022,7 +4040,7 @@ gdm:.my.domain
Specifies the stock label that will be displayed on the
<filename>n-th</filename> &quot;Custom Command&quot;
list items and radio buttons. If not specified the default
- value is &quot;Execute _custom command [0-9]&quot;. This
+ value is &quot;Execute custom command _[0-9]&quot;. This
option is only valid if corresponding
<filename>CustomCommand</filename> is defined. [0-9]
represents <filename>CustomCommand</filename> suffix and
@@ -4042,7 +4060,14 @@ gdm:.my.domain
&quot;false&quot;. This option is only valid if corresponding
<filename>CustomCommand</filename> is defined. [0-9]
represents <filename>CustomCommand</filename> suffix and
- can be an integer between 0 and 9.
+ can be an integer between 0 and 9. In addition when
+ corresponding <filename>CustomCommandIsPersistent</filename>
+ is set to true, setting CustomCommandNoRestart to false will
+ place corresponding <filename>CustomCommand</filename> in the
+ Shut Down dialog set of actions, setting it to true will place
+ corresponding
+ <filename>CustomCommand</filename> in the Log Out dialog set of
+ actions.
</para>
</listitem>
</varlistentry>
@@ -4796,6 +4821,50 @@ Answers:
</screen>
</sect3>
+ <sect3 id="querycustomcmdlabels">
+ <title>QUERY_CUSTOM_CMD_LABELS</title>
+<screen>
+ QUERY_CUSTOM_CMD_LABELS: Query labels belonging to exported custom
+ commands Only supported on connections that
+ passed AUTH_LOCAL.
+ Supported since: 2.5.90.0
+ Answers:
+ OK &lt;label1&gt;;&lt;label2&gt;;...
+ Where labelX is one of the labels belonging to CUSTOM_CMDX
+ (where X in [0,GDM_CUSTOM_COMMAND_MAX)). An empty list can
+ also be returned if none of the custom commands are exported
+ outside login manager (no CustomCommandIsPersistent options
+ are set to true).
+ ERROR &lt;err number&gt; &lt;english error description&gt;
+ 0 = Not implemented
+ 100 = Not authenticated
+ 200 = Too many messages
+ 999 = Unknown error
+</screen>
+ </sect3>
+
+ <sect3 id="querycustomcmdnorestartstatus">
+ <title>QUERY_CUSTOM_CMD_NO_RESTART_STATUS</title>
+<screen>
+QUERY_CUSTOM_CMD_NO_RESTART_STATUS: Query NoRestart config options
+ for each of custom commands Only
+ supported on connections that
+ passed AUTH_LOCAL.
+Supported since: 2.5.90.0
+Answers:
+ OK &lt;status&gt;
+ Where each bit of the status represents NoRestart value for
+ each of the custom commands.
+ bit on (1): NoRestart = true,
+ bit off (0): NoRestart = false.
+ ERROR &lt;err number&gt; &lt;english error description&gt;
+ 0 = Not implemented
+ 100 = Not authenticated
+ 200 = Too many messages
+ 999 = Unknown error
+</screen>
+ </sect3>
+
<sect3 id="queryvt">
<title>QUERY_VT</title>
<screen>
@@ -6530,7 +6599,7 @@ homogeneous=&quot;bool&quot;&gt;
<filename>config</filename>, _(&quot;_Configure&quot;
</para>
<para>
- <filename>custom_cmd[0-9]</filename>, _(&quot;_Custom[0-9]&quot;
+ <filename>custom_cmd[0-9]</filename>, _(&quot;Custom_[0-9]&quot;
</para>
<para>
<filename>disconnect</filename>, _(&quot;D_isconnect&quot;
@@ -7084,6 +7153,7 @@ Hosts=appserverone,appservertwo
CustomCommandLRLabel0=Reboot into _Windoze
CustomCommandText0=Are you sure you want to restart the computer into Windoze?
CustomCommandTooltip0=Restarts the computer into Windoze
+ CustomCommandIsPersistent0=true
</screen>
CustomCommand0 specifies two commands separated by a semicolon:
@@ -7122,6 +7192,7 @@ Hosts=appserverone,appservertwo
CustomCommandLRLabel0=Reboot into _Windoze
CustomCommandText0=Are you sure you want to restart the computer into Windoze?
CustomCommandTooltip0=Restarts the computer into Windoze
+ CustomCommandIsPersistent0=true
CustomCommand1=/sbin/updatesystem;/usr/local/sbin/updatesystem
CustomCommandLabel1=_Update Me
@@ -7142,6 +7213,7 @@ Hosts=appserverone,appservertwo
CustomCommandLRLabel0=Reboot into _Windoze
CustomCommandText0=Are you sure you want to restart the computer into Windoze?
CustomCommandTooltip0=Restarts the computer into Windoze
+ CustomCommandIsPersistent0=true
CustomCommand1=/sbin/updatesystem;/usr/local/sbin/updatesystem
CustomCommandLabel1=_Update Me