diff options
author | nags <nags@nags-desktop.(none)> | 2010-02-22 22:39:57 -0800 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2010-02-22 22:39:57 -0800 |
commit | 6d02f54b662ab1f92893297a94ed625722360c89 (patch) | |
tree | 4fa019a66e43f8b095b65a12be6de87a9807be85 | |
parent | 001ff64c116e8e9df32dc20f559be0948a34ee45 (diff) |
Fixed launchapp arguments
-rw-r--r-- | python/ldtp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/ldtp.py b/python/ldtp.py index 8d2ca77..fc8eef2 100644 --- a/python/ldtp.py +++ b/python/ldtp.py @@ -3662,7 +3662,7 @@ def hasstate (windowName, componentName, *state): screenshot = False, logStatus = "warning") return 0 -def launchapp (appName, arg = [''], delay = 5, env = 1): +def launchapp (appName, arg = [], delay = 5, env = 1): """ INPUT: launchapp ('<application name>'[, <'argument'>][, 5][, 1 or 0]) Currently argument is used, only when you are trying to run from local machine @@ -3703,7 +3703,7 @@ def launchapp (appName, arg = [''], delay = 5, env = 1): os.environ['GNOME_ACCESSIBILITY'] = '1' try: - process = subprocess.Popen([appName]+arg) + process = subprocess.Popen([appName]+arg, close_fds = True) # Let us wait so that the application launches try: time.sleep(int(delay)) |