Skip to content

alezost/xdpyprobe

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.