diff --git a/twander.py b/twander.py index 797b118..145809c 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.85 2002/11/26 21:01:04 tundra Exp $" +RCSID = "$Id: twander.py,v 1.86 2002/11/27 03:13:09 tundra Exp $" VERSION = RCSID.split()[2] @@ -12,6 +12,7 @@ # Imports # #----------------------------------------------------------# +import commands import getopt import mutex import os @@ -86,12 +87,13 @@ ##### -# Default Directories & Files +# System-Related Defaults ##### # Default startup directory STARTDIR = "." + os.sep +# Home director HOME = os.getenv("HOME") or STARTDIR @@ -917,11 +919,16 @@ # No, a *file* was selected with a double-click - # If we're running Win32, use OS association to try and run it. + # We know what to do on Win32 and Unix. We ignore + # the selection elsewhere. elif OSNAME == 'nt': os.startfile(os.path.join(os.path.abspath(UI.CurrentDir), selected)) + elif OSNAME == 'posix': + os.system(os.path.join(os.path.abspath(UI.CurrentDir), selected) + "&") + + # Have to update the window title because selection changed UI.UpdateTitle(UIroot)