The launchapp function does not honor the delay parameter. The fix is a one-liner (change sleep(5) to sleep(delay))
Fixed in git. Thanks for the bug report.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.