diff --git a/docs/labwc-actions.5.scd b/docs/labwc-actions.5.scd index ef65a524..c36c731e 100644 --- a/docs/labwc-actions.5.scd +++ b/docs/labwc-actions.5.scd @@ -12,7 +12,9 @@ Actions are used in keyboard bindings. Close top-most view. ** - Execute command. + Execute command. Note that in the interest of backward compatibility, + labwc supports as an alternative to even though + openbox documentation states that it is deprecated. ** Exit labwc. diff --git a/src/menu/menu.c b/src/menu/menu.c index fda73cee..846125a8 100644 --- a/src/menu/menu.c +++ b/src/menu/menu.c @@ -180,6 +180,13 @@ fill_item(char *nodename, char *content) "nodename: '%s' content: '%s'", nodename, content); } else if (!strcmp(nodename, "command.action")) { current_item_action->arg = strdup(content); + } else if (!strcmp(nodename, "execute.action")) { + /* + * foo + * is deprecated, but we support it anyway for backward + * compatibility with old openbox-menu generators + */ + current_item_action->arg = strdup(content); } }