[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Menu syntax question



On 16 Sep 1997, Milan Zamazal wrote:

> Sorry, I didn't find this information in the menu manual.
> 
> `phalanx' chess program should be run inside `xboard' through the menu.
> However, if `xboard' isn't available, it should be run inside xterm
> (in text version).
> So my questions are:
> 1. How to specify, that `xboard' must be installed for the given menu item?
> 2. How to specify, that text version should be run under X, when
>    `xboard' is not available?

Write a script something like

	#!/bin/sh

	if [ -x /usr/games/xboard ] ;
		# Run it under xboard
	else
		# Run it in an xterm
	fi


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: