Dispatching default application for file, cross platform.
Peter Otten
__peter__ at web.de
Wed Aug 22 06:04:28 EDT 2007
Tim Golden wrote:
> Hendrik van Rooyen wrote:
>> How do I do the equivalent of clicking (in SuSe) or double clicking (in
>> Windows) on a file?
>>
>> In effect I want to tell the OS - take this file and feed it to the
>> application that is registered for it.
> os.startfile
Unfortunately this is Windows-only.
For KDE you can use
$ kfmclient exec yourfile
Peter
More information about the Python-list
mailing list