[openbox] Use of DISPLAY in menu commands

Jim Rees rees at umich.edu
Fri Feb 21 07:26:57 EST 2014


daryl at ci.com.au wrote:

  I wish to fire up a remote xterm on my local display through the openbox
  menus. From a local xterm I can run:
  
  > rsh remhost xterm -display $DISPLAY
  
  But when I put this in my menu.xml no xterm runs
  
  		<item label="RemoteHost">
  			<action name="Execute">
  			  <command>
  				  xterm -display $DISPLAY  
  			  </command>
  			</action>
  		</item>

"-display $DISPLAY" is the default, you don't need to specify it. I suspect
you want something else?

I'm not sure how openbox executes commands, but it doesn't seem to do many
of the usual shell expansions. Try this:

  			  <command>
  				  sh -c "xterm -display $DISPLAY"
  			  </command>


More information about the openbox mailing list