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 a C
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-
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 will
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,
then
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?
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 exists, so
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