Re: Checking for X availability

2005-01-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nils Nordman <[EMAIL PROTECTED]> wrote: >On Tue, Jan 11, 2005 at 03:32:01AM -0800, Flavio codeco coelho wrote: >> So my question is: how can I check for the availability of X? i.e., >> How will my program know if its running in a text only console or in >> console w

Re: Checking for X availability

2005-01-11 Thread Dan Stromberg
On Tue, 11 Jan 2005 03:32:01 -0800, Flavio codeco coelho wrote: > I have a program that uses pythondialog for its UI. > > Pythondialog is a wrapper of the shell dialog and xdialog libs. > > But I would like for it to switch between using Dialog ( when X is not > available ) and xdialog (when X

Re: Checking for X availability

2005-01-11 Thread Jeremy Bowers
On Tue, 11 Jan 2005 03:32:01 -0800, Flavio codeco coelho wrote: > So my question is: how can I check for the availability of X? i.e., How > will my program know if its running in a text only console or in console > window over X? The first thing that leaps to mind is... try it. If it fails, switch

Re: Checking for X availability

2005-01-11 Thread Nils Nordman
On Tue, Jan 11, 2005 at 03:32:01AM -0800, Flavio codeco coelho wrote: > So my question is: how can I check for the availability of X? i.e., > How will my program know if its running in a text only console or in > console window over X? Well, one way to do it is to check whether the environment var

Checking for X availability

2005-01-11 Thread Flavio codeco coelho
I have a program that uses pythondialog for its UI. Pythondialog is a wrapper of the shell dialog and xdialog libs. But I would like for it to switch between using Dialog ( when X is not available ) and xdialog (when X is available) So my question is: how can I check for the availability of X?