diff --git a/docs/api/settings.rst b/docs/api/settings.rst index b26b2d25d..c5947c4b5 100644 --- a/docs/api/settings.rst +++ b/docs/api/settings.rst @@ -106,7 +106,7 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted: * - ``api.key`` - Only maps to ``api.key`` in ``config.yaml`` if request is sent with admin rights, set to ``n/a`` otherwise. Starting with OctoPrint 1.3.3 setting this field via :ref:`the API ` is not possible, - only :ref:`regenerting it ` is supported. Setting a custom value is only + only :ref:`regenerating it ` is supported. Setting a custom value is only possible through `config.yaml`. * - ``api.allowCrossOrigin`` - diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index 790702fd1..7d4107174 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -1092,7 +1092,12 @@ System Use the following settings to add custom system commands to the "System" dropdown within OctoPrint's top bar. -Commands consist of a name, an action identifier, the commandline to execute and an optional confirmation message to +Commands consist of a ``name`` shown to the user, an ``action`` identifier used by the code and the actual +``command`` including any argument needed for its execution. +By default OctoPrint blocks until the command has returned so that the exit code can be used to show a success +or failure message; use the flag ``async: true`` for commands that don't return. + +Optionally you can add a confirmation message to display before actually executing the command (should be set to False if a confirmation dialog is not desired). The following example defines a command for shutting down the system under Linux. It assumes that the user under which diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 index 6541c2b58..f66f9f35b 100644 --- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 +++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 @@ -245,57 +245,64 @@

{% trans %}You should normally not have to change any of the following settings, they are purely provided for convenience here.{% endtrans %}

- {{ _('Plugin repository configuration') }} +
+ {{ _('Plugin repository configuration') }} -
- -
- -
-
-
- -
-
- - min +
+ +
+
-
- - {{ _('Notices configuration') }} - -
- -
- -
-
-
- -
-
- - min +
+ +
+
+ + min +
-
+
- {{ _('pip configuration') }} +
+ {{ _('Notices configuration') }} -
- -
- +
+ +
+ +
-
-
-
- +
+ +
+
+ + min +
+
-
+
+ +
+ {{ _('pip configuration') }} + +
+ +
+ +
+
+
+
+ +
+
+
+
@@ -271,7 +271,7 @@
@@ -299,7 +299,7 @@
diff --git a/src/octoprint/templates/initscript.jinja2 b/src/octoprint/templates/initscript.jinja2 index 722830bf3..7ffa07a26 100644 --- a/src/octoprint/templates/initscript.jinja2 +++ b/src/octoprint/templates/initscript.jinja2 @@ -1,4 +1,4 @@ -