<div><i>"Did you forget to add it to <menu> in rc.xml?"  </i>LOL, no, I didn't  <i>forget</i> - I screwed it up. That was a clever idea to test, and a very good and productive question, because in checking rc.xml to be sure, I saw I had left off the ".xml".<i>   </i>That fixed it.<i> </i>Thank you, both.<i><br></i></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div>..................................<br></div><div><i>"To attempt to silence a man is to pay him homage, for it is an acknowledgement that his arguments are both impossible to answer and impossible to ignore."</i> - John Bryant<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user"><div><div>Roger Stone legal defense fund - because arresting people as political theater must not  be tolerated:   <a href="https://www.stonedefensefund.com/">https://www.stonedefensefund.com/</a><br></div></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div></div><div><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On Monday, July 13, 2020 5:05 AM, Philip Mundhenk <philip.mundhenk@protonmail.ch> wrote:<br></div><div> <br></div><blockquote class="protonmail_quote" type="cite"><div>If some of this bewilders you, Mark first responded to me directly, rather than the list, so I responded to him directly a couple of times, explaining why I thought he was mistaken, and that material is omitted. The gist:<br></div><div><br></div><div>Mark, I think you fundamentally misunderstand the problem, but in the spirit of "make allowance for their doubting too" I tried all your suggestions, both explicit and implied, separately & in combination, reloading the menus after each edit and save cycle. That's 9 different versions I tried. I don't see anything to be gained by pasteing each one in separately, because I can summarize it simply:<br></div><div><br></div><div>All of your suggested changes re the header, extra tags, or xml syntax have no effect whatsoever. I get exactly the same error message. You may be correct about some of them being more in accord with some current xml standards, but they don't change the behavior at all. And standard or not, the syntax in my OP is working in half a dozen menus, all with different key or mouse bindings. That's why I asked if there is an upper limit on the number of menus recognized.<br></div><div><br></div><div>Your other point is insistence that the id tag needs to be "root-menu". I explained that I didn't think having multiple menus with the same tag made any sense, but I tried it anyway, separately and in combination with all your xml syntax variations. None of files with that id had any effect at all. I didn't even get an error message. It was just as if they weren't there at all. Which is not surprising - the only other likely possibility being that they would be substituted for the main menu, meaning the one with all the apps on it, one of the 2 that are present and mousebound to clicks on the root window by default in a fresh installation. What would be the point in having menu IDs if multiple menus could have the same ID?<br></div><div><br></div><div>So, here are the possibilities I've thought of:<br></div><div>- There is a tiny, hard to see error somewhere, like a ' substituted for a "<br></div><div>- I've run up against a total menu limit and can't have any more<br></div><div>- Something has broken and my old menus work but I can't create new ones<br></div><div>- "menu_test" is a reserved name or the underscore is a disallowed character. I really doubt that one, because I also tried "menutest".<br></div><div><br></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div>On Monday, July 13, 2020 2:51 AM, Marcus Schätzle <<a href="mailto:kickshaw22@gmail.com">kickshaw22@gmail.com</a>> wrote:<br></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div dir="ltr"><div dir="ltr"><div>(resending, as my replay did originally only go to the OP)<br></div><div><div><br></div><div>I see now that Openbox accepts something like this:<br></div></div><div><br></div><div><span><?xml version="1.0" encoding="utf-8"?><br><br><openbox_menu><br><br></span><menu id="root-menu" label="menu test"><span><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:<br></div><div>16:   3       The element type "menu" must be terminated by the matching end-tag "</menu>"<br></div><div><br></div><div>Adding the </menu> closing tag will result in fixing that inside the validator.<br></div><div><br></div><div>I'd certainly not omit the closing tag to avoid unexpected problems.<br></div></div><div><br></div><div class="gmail_quote"><div dir="ltr">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><div>"- the menu id has to be "root-menu" instead of "menu_test"."<br></div><div>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></div><div><br></div><div>"- the closing </menu> tag is missing between </item> and <openbox_menu>"<br></div><div><br></div><div>The lines<br></div><div><menu id="menu_test" label="menu test"><br></div><div>and<br></div><div></openbox_menu><br></div><div>constitute an opening and closing pair, do they not? I've got half a dozen working menus that use that same syntax. <br></div></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></blockquote><div><br></div></blockquote><div><br></div>