Check connection to X server DISPLAY

Alex Kost 384fc8da48 Add "guix.scm" 8 سال پیش
src 968a9408d3 Initial commit 8 سال پیش
.gitignore 968a9408d3 Initial commit 8 سال پیش
COPYING 968a9408d3 Initial commit 8 سال پیش
Makefile.am 968a9408d3 Initial commit 8 سال پیش
README.org 384fc8da48 Add "guix.scm" 8 سال پیش
autogen.sh 968a9408d3 Initial commit 8 سال پیش
configure.ac 968a9408d3 Initial commit 8 سال پیش
guix.scm 384fc8da48 Add "guix.scm" 8 سال پیش

README.org

About

The only purpose of xdpyprobe program is to probe the X server for connectivity. The idea of this program came from this SO question.

The result of probing can be obtained either from an output or from the exit status (0 - connection is possible, 1 - it is not). The output may be suppressed with --quiet option.

Examples


$ xdpyprobe
DISPLAY ':0' is available?  yes

$ xdpyprobe :3
DISPLAY ':3' is available?  no

$ DISPLAY=:2 xdpyprobe -q ; echo $?
1

$ xdpyprobe -h
... <some useful info> ...

Building from Git

Requirements for building from git:

Run =./autogen.sh= to generate the build system infrastructure. After that, the program can be built and installed with the usual sequence of commands of the GNU Build System:


./configure
make
make install

Building with Guix

This repository contains guix.scm file which can be used to build the development version of this package with GNU Guix.

A Guix package for the latest release can be found in my guix-config repository.