<div dir="ltr"><div dir="ltr"><div>(resending, as my replay did originally only go to the OP)<br></div><div><br>I see now that Openbox accepts something like this:</div><div><br></div><div><span class="gmail-im"><?xml version="1.0" encoding="utf-8"?><br><br><openbox_menu><br><br></span><menu id="root-menu" label="menu test"><span class="gmail-im"><br>    <item label="proof it works"><br>        <action name="Execute"><br>            <command>xmessage Hello</command><br>            <startupnotify><br>                <enabled>yes</enabled><br>            </startupnotify><br>        </action><br>    </item><br><br></openbox_menu></span></div><div><br></div><div>Nevertheless, that XML put into an XML-validator results in this message:</div><div>16:  3       The element type "menu" must be terminated by the matching end-tag "</menu>"</div><div><br></div><div>Adding the </menu> closing tag will result in fixing that inside the validator.</div><div><br></div><div>I'd certainly not omit the closing tag to avoid unexpected problems.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 13. Juli 2020 um 02:20 Uhr schrieb Philip Mundhenk <<a href="mailto:philip.mundhenk@protonmail.ch">philip.mundhenk@protonmail.ch</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>"- the menu id has to be "root-menu" instead of "menu_test"."<br>That would seem to conflict with the main application menu, the one that comes installed by default, mousebound to a right or left click on the root window [I forget which is default - it's right in my case but I may have swapped the binding with the client-list-combined-menu which is also present by default out-of-the-box].  AFAIK, 2 or more menus with the same id makes no sense. All of my menus have unique id strings. The others all work fine when elicited with the key or mouse binding set in ~/.config/openbox/rc.xml. I don't see your point.<br><br>"- the closing </menu> tag is missing between </item> and <openbox_menu>"<br><br>The lines<br><menu id="menu_test" label="menu test"><br>and<br></openbox_menu><br>constitute an opening and closing pair, do they not? I've got half a dozen working menus that use that same syntax. </div><div><br></div><div><div><div><br></div></div></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On Sunday, July 12, 2020 10:58 PM, Marcus Schätzle <<a href="mailto:kickshaw22@gmail.com" target="_blank">kickshaw22@gmail.com</a>> wrote:<br></div><div> <br></div><blockquote type="cite"><div dir="ltr"><div>Your example menu has two issues:<br></div><div>- the closing </menu> tag is missing between </item> and <openbox_menu><br></div><div>- the menu id has to be "root-menu" instead of "menu_test".<br></div><div><br></div><div>If these two changes are applied, the item shows up.<br></div></div><div><br></div><div class="gmail_quote"><div dir="ltr">Am So., 12. Juli 2020 um 23:37 Uhr schrieb Philip Mundhenk <<a href="mailto:philip.mundhenk@protonmail.ch" target="_blank">philip.mundhenk@protonmail.ch</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I have file<br></div><div>~/.config/openbox/menu_test.xml<br></div><div><br></div><div>which contains what's between the #######s:<br></div><div>##########################################################################<br></div><div><div><?xml version="1.0" encoding="utf-8"?><br></div><div><openbox_menu xmlns="<a href="http://openbox.org/" target="_blank">http://openbox.org/</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://openbox.org/" target="_blank">http://openbox.org/</a>                 file:///usr/share/openbox/menu.xsd"><br></div><div>    <menu id="menu_test" label="menu test"><br></div><div><br></div><div>  <item label="proof it works"><br></div><div>    <action name="Execute"><br></div><div>      <command>xmessage Hello</command><br></div><div>      <startupnotify><br></div><div>        <enabled>yes</enabled><br></div><div>      </startupnotify><br></div><div>    </action><br></div><div>  </item><br></div><div><br></div><div></openbox_menu><br></div></div><div>##########################################################################<br></div><div>or here, if you prefer:<br></div><div><a href="https://pastebin.com/R7VqSqRQ" target="_blank">https://pastebin.com/R7VqSqRQ</a><br></div><div>per stat: Access: (0777/-rwxrwxrwx)<br></div><div>so perms shouldn't be the issue.<br></div><div><br></div><div><br></div><div><div><div>But when I attempt to invoke it, I get a zenity-like box with the title "Openbox" and the error message:<br></div><div><br></div><div>Attempted to access menu "menu_test" but it does not exist<br></div><div><br></div><div>I can't see anything weird about the file. It has an extra newline at the end per linux conventions. Except for the id and label values, which are unique, it has the same header as other menus located in the same directory. They work fine. Is there some low limit to the number of menus I can define?<br></div><div><br></div><div>This is under pclos, the plain Openbox version. It's in the Mandrake family of distros and nobody at that forum has any ideas.<br></div></div><div><br></div><div>Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>_______________________________________________<br></div><div> openbox mailing list<br></div><div> <a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br></div><div> <a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br></div></blockquote></div></blockquote><div><br></div></blockquote></div></div>