os.startfile() on Linux ?
none at of.your.business
Tue Mar 11 17:50:22 CET 2003
On Tue, 11 Mar 2003 12:35:51 +0100, Harald Schneider wrote:
> is there a way to call a file with it's corresponding application, like
> os.startfile() on Win32 does ?
the problem is that then you have to know what the "corresponding
application" for some given file is, and on unix, that's a not quite
trivial problem. if you're willing to tie your program to a specific
desktop environment, then KDE and Gnome each have their own ways of
resolving such correspondences, and Gnome at least has reputedly-good
python bindings; but "barebones unix", posix that is, has no such
PGP/GnuPG key (ID 1024D/3AC87BD1) available from keyservers everywhere
Key fingerprint = FA8D 5EA4 E7DC 84B3 64BC 410C 7AEE 54CD 3AC8 7BD1
"...if you can fill the unforgiving minute
with sixty seconds' worth of distance run..."
More information about the Python-list