sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00785
[Bug 705478] [NEW] openAPP() waits for the app to finish
Public bug reported:
This is sikuli packaged for openSUSE, as available in
http://software.opensuse.org/search?q=sikuli
Version is 0.10.2, tested both in 32bit and 64bit openSUSE Linux 11.3
I type a one-liner script
openApp('xterm')
and press the green run triangle.
It launches xterm all right, but does not return to the python interpreter unless I close the xterm.
This makes it hard to start and control an application under script control.
I've worked around this in the past by automating ALT-F2 and and having the app name typed there.
Now I found another 'workaround', that I'd like to share, because of two advantages over the original
implementation:
- pure python, no java code touched,
- returns a popen object, and also has the pid attribute filled in correctly. Useful for later cleanup.
(and third, it works for me)
See attached. The new call is named openApp2(), and could eventually
replace openApp() if it works on other platforms too.
** Affects: sikuli
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/705478
Title:
openAPP() waits for the app to finish
Status in Sikuli:
New
Bug description:
This is sikuli packaged for openSUSE, as available in
http://software.opensuse.org/search?q=sikuli
Version is 0.10.2, tested both in 32bit and 64bit openSUSE Linux 11.3
I type a one-liner script
openApp('xterm')
and press the green run triangle.
It launches xterm all right, but does not return to the python interpreter unless I close the xterm.
This makes it hard to start and control an application under script control.
I've worked around this in the past by automating ALT-F2 and and having the app name typed there.
Now I found another 'workaround', that I'd like to share, because of two advantages over the original
implementation:
- pure python, no java code touched,
- returns a popen object, and also has the pid attribute filled in correctly. Useful for later cleanup.
(and third, it works for me)
See attached. The new call is named openApp2(), and could eventually
replace openApp() if it works on other platforms too.
Follow ups
References