desktop: fix execWithCapture usage