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

Re: check if X is running?

On Sun, 24 Jan 1999, Hamish Moffatt wrote:
> I'd like to remove that check and make it a better one. Is checking
> for $DISPLAY sufficient?

Why not just try to open the display, and if that fails bail out to text
mode? (Since $DISPLAY might be invalid, or there might be a -display
command line option overriding it, or whatever.)


Reply to: