diff options
author | nags <nags@nags-desktop.(none)> | 2010-02-22 22:56:16 -0800 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2010-02-22 22:56:16 -0800 |
commit | 869d260751ea0a5459b7b622c1a1cbd1ca0c7d20 (patch) | |
tree | 99f9943b693a01e3ef2a8f70ca8ec972ad2074be | |
parent | 6d02f54b662ab1f92893297a94ed625722360c89 (diff) |
Fixed launchapp arguments
-rw-r--r-- | python/ldtp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/ldtp.py b/python/ldtp.py index fc8eef2..0f6b946 100644 --- a/python/ldtp.py +++ b/python/ldtp.py @@ -3722,6 +3722,8 @@ def launchapp (appName, arg = [], delay = 5, env = 1): envVar ['GNOME_ACCESSIBILITY'] = '1' fd = _sockFdPool.get (threading.currentThread ()) fd.close () + if len(arg) == 0: + arg.insert(0, '') # If we don't insert the appName, we get '.' as application name arg.insert (0, appName) if arg [1] == '': |