I don't know about all Linux distros, but my Ubuntu machine (8.04 Beta), has
the 'TERM' (xterm) and 'COLORTERM' (gnome-terminal) keys in os.environ. You
might be able to use that to ensure that the terminal is installed, but you
should probably look at a couple of other popular distros first to make sure
that the key is there.
----- Original Message ----
From: Harishankar <[EMAIL PROTECTED]>
To: python-list@python.org
Sent: Wednesday, April 23, 2008 5:31:54 AM
Subject: Re: [Python 2.4/2.5] subprocess module is sorely deficient?
On Wednesday 23 Apr 2008 14:46:20 Christian Heimes wrote:
> Harishankar schrieb:
> > Is there any platform independent way to launch a terminal window from a
> > desktop (Windows, Linux, etc.)?
>
> No, there isn't. It usually not possible to create a graphical terminal
> window on a remote server.
>
> Christian
Ah, well, since my application is a desktop tool and it requires a GUI I'm
doing something like this:
However, I have to then force the user to use xterm (which is a popular/common
X Terminal)
if (sys.platform.startswith ('win'):
# launch the windows cmd.exe with the command
...
else:
# warn the user that xterm is required and then launch xterm
...
--
Regards,
V. Harishankar
http://hari.literaryforums.org
http://harishankar.org
--
http://mail.python.org/mailman/listinfo/python-list
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
--
http://mail.python.org/mailman/listinfo/python-list