From 4f923ededc32c4aab627d840dacd1cbec61afb18 Mon Sep 17 00:00:00 2001
From: Patrick Ziegler
Date: Wed, 13 Apr 2022 10:47:01 +0200
Subject: [PATCH] doc: Fix menu module action migration example (#2687)
The label-open was missing, making the snippet not work as-is.
In addition, backgrounding programs is no longer necessary
Ref #2686
---
doc/user/actions.rst | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/doc/user/actions.rst b/doc/user/actions.rst
index 850a8c4a..24c6089f 100644
--- a/doc/user/actions.rst
+++ b/doc/user/actions.rst
@@ -406,20 +406,22 @@ Below you can see an example of a menu module:
[module/apps]
type = custom/menu
+ label-open = Apps
+
menu-0-0 = Browsers
menu-0-0-exec = menu-open-1
menu-0-1 = Multimedia
menu-0-1-exec = menu-open-2
menu-1-0 = Firefox
- menu-1-0-exec = firefox &
+ menu-1-0-exec = firefox
menu-1-1 = Chromium
- menu-1-1-exec = chromium &
+ menu-1-1-exec = chromium
menu-2-0 = Gimp
- menu-2-0-exec = gimp &
+ menu-2-0-exec = gimp
menu-2-1 = Scrot
- menu-2-1-exec = scrot &
+ menu-2-1-exec = scrot
This module uses two actions: ``menu-open-1`` and ``menu-open-2``.
These are actions with data, the data specifies which level of the menu should
@@ -437,17 +439,19 @@ likely not use ``apps``, but the name of your module.
[module/apps]
type = custom/menu
+ label-open = Apps
+
menu-0-0 = Browsers
menu-0-0-exec = #apps.open.1
menu-0-1 = Multimedia
menu-0-1-exec = #apps.open.2
menu-1-0 = Firefox
- menu-1-0-exec = firefox &
+ menu-1-0-exec = firefox
menu-1-1 = Chromium
- menu-1-1-exec = chromium &
+ menu-1-1-exec = chromium
menu-2-0 = Gimp
- menu-2-0-exec = gimp &
+ menu-2-0-exec = gimp
menu-2-1 = Scrot
- menu-2-1-exec = scrot &
+ menu-2-1-exec = scrot