[2.0.4] Issue in openApp with 'cmd.exe /c ...' command --- workaround

Bug #1893319 reported by umesh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

**************** possible workaround:

in Jython: use os.Popen()
in Java: use ProcessBuilder

--------------------------------------------

REGRESSION - issue detected on
Sikuli : 2.0.x
OS : win 10 - 64 bit [version 1903]
java version : on both java 8 and java 11

OK in Sikuli 111. All following command works as expected in Sikuli 111.

Run following command :

cmd1 = 'cmd.exe /c mspaint "C:\\temp\\OneImage.png"'
x = openApp(cmd1)
Expected Behavior : Should open paint app with OneImage.png open in it
Actual Behavior : Opens the Sikuli home file path in explorer window

cmd2 = 'cmd.exe /c mspaint'
x = openApp(cmd2)
Expected : Should open Untitled paint app (blank)
Actual : Opens the Sikuli home file path in explorer window

cmd3 = 'cmd.exe @cmd /k "dir"'
x = openApp(cmd3)
Expected : Should print output of dir in command window
Actual : Activates command window from which sikuli is launched

umesh (umsalotagi)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.5
summary: - [Sikuli 2.0.x] Issue in openApp with 'cmd.exe /c ...' command
+ [Sikuli 2.0.x] Issue in openApp with 'cmd.exe /c ...' command ---
+ workaround
description: updated
RaiMan (raimund-hocke)
summary: - [Sikuli 2.0.x] Issue in openApp with 'cmd.exe /c ...' command ---
- workaround
+ [2.0.4] Issue in openApp with 'cmd.exe /c ...' command --- workaround
Revision history for this message
Venkataraman T (t-venkataraman) wrote :

Dear RaiMan,
Any update about this fix? We had many scripts which we created in sikulix1.0 and we try to update to latest sikuli and end up in this error. Can we expect the fix soon?
Thanks a lot for your support

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.