Re: Use of DISPLAY in menu commands

Jim Rees <[email protected]>
Newsgroups gmane.comp.window-managers.openbox
Message-ID <[email protected]>
[email protected] 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>
_______________________________________________
openbox mailing list
[email protected]
http://icculus.org/mailman/listinfo/openbox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.