[openbox] Queue actions in menu

Jonas J Linde jonas at init.se
Fri Jul 27 03:01:08 EDT 2007


And Dana Jansens spoke unto the world. And said:
>On 7/27/07, Mikael Magnusson <mangosoft at comhem.se> wrote:
>> On Fri, 27 Jul 2007, Przemyslaw Gawronski wrote:
>>
>> > Hi, I'm new to OpenBox, I've been a long time IceWM and AfterStep user,
>> > but decided to give OpenBox a try :)
>> >
>> > In my menu file I've got this entry:
>> >
>> > <menu id="setup-menu" label="Config">
>> >  <item label="openbox menu.xml">
>> >     <action name="Execute">
>> >         <command>gvim -geometry 120x50 .config/openbox/menu.xml</command>
>> >     </action>
>> >     <action name="Reconfigure" />
>> >  </item>
>> > </menu>
>> >
>> > What I want is to OpenBox automatically reconfigure itself after editing
>> > the menu file, but it doesn't :(
>> >
>> > I would be thankful for suggestions.
>>
>> 1) Openbox doesn't hang while apps you launch are running, that would
>> probably be annoying.
>> 2) gvim automatically forks itself when launched so it's impossible to
>> wait for if we wanted (by default)
>>
>> However:
>> <command>gvim -f -geometry 120x50 .config/openbox/menu.xml && openbox --reconfigure</command>
>>               ^^                                           ^^^^^^^^^^^^^^^^^^^^^^^^
>
>I think what he meant was:
><command>sh -c "gvim -f -geometry 120x50 .config/openbox/menu.xml &&
>openbox --reconfigure"</command>
>
>Because you need to use a shell to do shell-like things.

Hm, but shouldn't that be 

 <command>sh -c "gvim -f -geometry 120x50 .config/openbox/menu.xml &amp;&amp; openbox --reconfigure"</command>

as shell syntax and xml doesn't go all that well together.

Cheers,
-- 
Jonas J Linde <jonas at init.se>  http://www.init.se/~jonas/ +46-707-492496
<---------------------------------------------------------------------->
GE/IT$ d-() s++: a C++(++++)$ UBVL++(++++)$ P+++ L+++$ E++ W++(-) N+ o--
K+ !w(+) O M@ V PS+ PE++(-) Y+ PGP+(++) t 5 X R-@ tv- b+>++ DI D++ G+(-)
e+++ h+(----) r@ y++++ UF+



More information about the openbox mailing list