473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Re: [Python 2.4/2.5] subprocess module is sorely deficient?

On Wednesday 23 Apr 2008 15:11:21 Ben Kaplan wrote:
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.
This is set on Debian too. Thanks. I should be able to use this environment
variable on most Linux distributions, I suspect.
--
Regards,
V. Harishankar

http://hari.literaryforums.org
http://harishankar.org
Jun 27 '08 #1
1 791
On 23 Apr, 13:17, Harishankar <v.harishan...@gmail.comwrote:
On Wednesday 23 Apr 2008 15:11:21 Ben Kaplan wrote:
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.

This is set on Debian too. Thanks. I should be able to use this environment
variable on most Linux distributions, I suspect.
Here on RHEL 4, COLORTERM has an empty value. I suppose that the
freedesktop.org standards should cover this kind of thing, and there
are some scripts out there which attempt to provide cross-desktop
support on Free Software desktops:

http://portland.freedesktop.org/wiki/XdgUtils

Similarly, the desktop module should provide support for various
desktop features, but opening command line windows or terminals isn't
yet possible:

http://www.python.org/pypi/desktop

It'd be interesting to know if we could find out (or make up) reliable
ways of opening the user's preferred terminal application.

Paul
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Xah Lee | last post by:
Python Doc Problem Example: os.system Xah Lee, 2005-09 today i'm trying to use Python to call shell commands. e.g. in Perl something like output=qx(ls) in Python i quickly located the...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
23
by: Harishankar | last post by:
Hi, Sorry to start off on a negative note in the list, but I feel that the Python subprocess module is sorely deficient because it lacks a mechanism to: 1. Create non-blocking pipes which can...
0
by: Christian Heimes | last post by:
Harishankar schrieb: I've added the feature to the Popen class a few days ago. The new methods are kill(), terminate() and send_signal(sig). On Windows all methods just fall back to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.