You are not logged in.
I use openbox with archlinux-xdg-menu as pipe menu. And I got an error information "openbox invaild output from pipe-menu "xdg_menu --format openbox3-pipe --root-menu /etc/xdg/menus/arch-applications.menu"" just when I was trying to open that pipe menu yesterday.
Then I found that it was the following code in ~/.xdg_menu_cache/output leading to the error.
<item label="Battle for Wesnoth" icon="/usr/share/icons/hicolor/16x16/apps/wesnoth-icon.png">
<action name="Execute"><execute>sh -c "wesnoth >/dev/null 2>&1"</execute></action>
</item>Where wesnoth is a game.
I just wonder why this command: sh -c "wesnoth >/dev/null 2>&1" in <execute> leads the error. It worked fine just putting in terminal directly. And if I rm "2>&1", the error won't happen.
Last edited by shake (2018-09-25 05:37:48)
Offline
Sounds like a misconfigured xml check in ~/.config/openbox failing that create a shell script with command and have that execute
Last edited by cirrus (2018-09-24 18:04:07)
Ancestoral Clan https://cirrus.freevar.com/mclean.html
Offline
http://openbox.org/wiki/Help:Actions#Execute
Also, the & character must be written as & in order to be parsed correctly. <execute> is a deprecated name for <command>.
Offline
http://openbox.org/wiki/Help:Actions#Execute
OpenBox wiki wrote:Also, the & character must be written as & in order to be parsed correctly. <execute> is a deprecated name for <command>.
Thx a lot. It's very helpful.
Offline
The problem is solved. However, I still have a question. Why "xdg_menu --format openbox3-pipe --root-menu /etc/xdg/menus/arch-applications.menu" gave me a wrong output including the characters "2>&1", instead of "2>&1" ?
I don't want to edit the output file manually. Is that possible to let xdg_menu command automatically output the correct character? What should I do for this purpose?
Offline