I was sincere with my "over my head" comment.
After reading your post I headed over to http://lxlinux.com/
, where "seppalta" has a heading "Openbox Menu [NEW]". After reading your initial hint of openbox-menu in your earlier post, I realize I was actually thinking "lxmenuman", which is a Java app. For that reason I accepted your praise and unwittingly dismissed your well intentioned hint. Forgive me please.
I appreciate you are probably seeking to encourage me to learn more about how this all works. I've seen some of your other posts, and I have great respect for your knowledge.
I'm embarrassed to admit I don't know very much about what's under the hood of Linux. I hack at configs I want, and google just about everything.
Please, I'm not trying to be a wise guy in any way, but since fanthom would like the Desktop right click menu to be dynamic, with all due respect, I will certainly yield to your obviously advanced knowledge. You make it sound pretty easy, I'm not so young, and tend to make things much harder than they are. I envy those who can work smarter as opposed to harder :-) Really, if dynamic is something you can edit in, in a relatively short time, please have at it. I'm off to do a bit of reading up at lxlinux.com.
Edit: several hour later..........
Wow, that is nice. I was able to use your code to get the dynamic menu almost fully. Seems it does not want to duplicate all applications in main-Panel-menu/Preferences, or anything thereafter (Leave & Lockscreen). But for the most part applications in those categories remain static.
It may be necessary to edit the lxde-applications.menu in /etc/xdg/menus. Which brings up the question of just how long that particular file will remain active as LXQt matures? Probably easily fixed anyway.
Next fanthom would need to decide if he wishes to include openbox-menu in the .iso, I think it's 20 or 21k compressed and about 80k otherwise.
Sure makes for a much smaller menu.xml file though, I'll have tomorrow to work on it here anyway.
Thanks again for the great hint.