[openbox] Queue actions in menu

Dana Jansens danakj at orodu.net
Fri Jul 27 00:09:12 EDT 2007


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.



More information about the openbox mailing list