<div dir="ltr"><div>Hi Rajib,</div><div><br></div><div>Firsty, forget about the "Mr.", I have a first name ; )</div><div><br></div><div>I still don't understand what you want to achieve. As far as my understanding goes, you were describing how you are doing to achieve something but not really what you want to achieve.</div><div><br></div><div>Let's start from the beginning. Openbox menus can be hardcoded or automagically generated.</div><div>Are you trying to have a piece of your Openbox menu (the one which opens when right-clicking on the desktop background) auto-generated? You spoke about scripts, perhaps you'd like to put all your scripts (or shortcuts to these scripts) into some directory and you expect that each of these scripts or shortcuts becomes a menu item in a separated sub-menu.</div><div><br></div><div>If you don't try to get an automated [sub]menu, scripts can be seen as standard executable, if they are configured on your file systems with executable bit (ie: chmod +x /path/to/your/script). Just use in that case "<command>/path/to/your/script possible_arg1 possible_arg2</command>".</div><div><br></div><div>Cheers,</div><div><br></div><div>mathias<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 20 mai 2023 à 14:19, <<a href="mailto:u34@net9.ga">u34@net9.ga</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">"Susmita/Rajib" <<a href="mailto:bkpsusmitaa@gmail.com" target="_blank">bkpsusmitaa@gmail.com</a>> wrote:<br>
<br>
> My dear illustrious Team Leaders and Senior members of openbox ML,<br>
> <br>
> A simple query.<br>
> <br>
> I have a working debian-menu reflecting the stored menu file in<br>
> /var/lib/menu-xdg/menus/debian-menu.menu<br>
> <br>
> I read the page <a href="http://openbox.org/wiki/Help:Menus" rel="noreferrer" target="_blank">http://openbox.org/wiki/Help:Menus</a>.<br>
> <br>
> Searching the internet, I tired to add a menu in extraScripts.xml in<br>
> ~/.config/openbox/. But failed to have it displayed upon right click<br>
> with $sudo update-menus.<br>
> <br>
> -------------------Begin Lines----------------------<br>
>    <menu id="extras" label="ExtraScripts"><br>
>       <menu id="my-scripts-menu" label="My Scripts"><br>
>          <item label="My Script"><br>
>             <action name="Execute"><br>
>                # <command>~/my_script.sh</command><br>
> <command>true</command><br>
>             </action><br>
>          </item><br>
>       </menu><br>
>    </menu><br>
> -------------------Begin Lines----------------------<br>
> <br>
> Right clicking on the desktop I find<br>
> /var/lib/menu-xdg/menus/debian-menu.menu being executed and the right<br>
> click drop down menu, sub-menu list appearing.<br>
> <br>
<br>
I have only superficial acquaintance with openbox.<br>
<br>
Where is that action binds to a mouse button? I would first try with a <br>
constant, meaningles, string. Just to see that part is working. It looks <br>
to me the simpler part of what you want.<br>
Basically, I guess that having open box do what you want is more complicated <br>
than what you imagine. You need openbox to read the output of your script.  <br>
It could be you should look at openbox pipe capability. <br>
<a href="http://openbox.org/wiki/Help:Menus" rel="noreferrer" target="_blank">http://openbox.org/wiki/Help:Menus</a> . I am not familair with that either.<br>
<br>
I hope that help. I am more guessing than writing out of knoweldge.<br>
<br>
--<br>
u34 <br>
<br>
> I want to add my personal scripts in this list.<br>
> <br>
> I also want to autostart some applications upon every session.<br>
> <br>
> How to achieve these objectives?<br>
> <br>
> Best wishes,<br>
> Rajib B<br>
> _______________________________________________<br>
> openbox mailing list<br>
> <a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
> <a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
_______________________________________________<br>
openbox mailing list<br>
<a href="mailto:openbox@icculus.org" target="_blank">openbox@icculus.org</a><br>
<a href="http://icculus.org/mailman/listinfo/openbox" rel="noreferrer" target="_blank">http://icculus.org/mailman/listinfo/openbox</a><br>
</blockquote></div>