Re: test=RunningX

2000-06-19 Thread Thomas Dickey
On Tue, Jun 20, 2000 at 03:04:19AM +0200, clemensF wrote: > isn't there some other way (a unix way) for trying to open the x- display? > is one of the standard /dev/* devices associated with an x- display? no (there's a socket associated with it, but the location and permissions vary from one p

Re: test=RunningX

2000-06-19 Thread David Champion
On 2000.06.19, in <[EMAIL PROTECTED]>, "clemensF" <[EMAIL PROTECTED]> wrote: > > Mrinal Kalakrishnan: > > > No it's different. If you're in a console while X is running, the > > RunningX test will fail, because it actually tries to open the > > display. Whereas the $DISPLAY variable still

Re: test=RunningX

2000-06-19 Thread clemensF
> Mrinal Kalakrishnan: > No it's different. If you're in a console while X is running, the > RunningX test will fail, because it actually tries to open the > display. Whereas the $DISPLAY variable still exists, so "test -n isn't there some other way (a unix way) for trying to open the x- display

Re: test=RunningX

2000-06-19 Thread clemensF
> Mrinal Kalakrishnan: > No it's different. If you're in a console while X is running, the > RunningX test will fail, because it actually tries to open the > display. Whereas the $DISPLAY variable still exists, so "test -n > $DISPLAY" test passes. So if you're in a console, while X is running, >

Re: test=RunningX

2000-06-19 Thread Mrinal Kalakrishnan
Hi, clemensF typed: > you might consider just using standard "/usr/bin/test -n $DISPLAY". no > need for special programs, if you test the existence of the x- variable > used to indicate, well, the display to use. No it's different. If you're in a console while X is running, the RunningX test wi

Re: test=RunningX

2000-06-19 Thread clemensF
> Gary Johnson: > > ...so it can be tested if an X-server is running. What is this program > > RunningX ? Is it an utility that comes with X (it is not on my you might consider just using standard "/usr/bin/test -n $DISPLAY". no need for special programs, if you test the existence of the x- var

Re: test=RunningX

2000-06-19 Thread Gary Johnson
On Mon, Jun 19, 2000 at 12:02:53AM +0200, [EMAIL PROTECTED] wrote: > ...so it can be tested if an X-server is running. What is this program > RunningX ? Is it an utility that comes with X (it is not on my > machine), or a simple script in bash or so (a test about a variable > like $TERM) ? It's

test=RunningX

2000-06-18 Thread gauthier . vandemoortele
Hello, In the documentation about mime-types, it's said that one can test whether a mailcap entry should be used with the command test=. The given example is : text/html; netscape -remote 'openURL(%s)' ; test=RunningX text/html; lynx %s ...so it can be tested if an X-server i