← Back to team overview

sikuli-driver team mailing list archive

[Bug 1893319] Re: [Sikuli 2.0.x] Issue in openApp with 'cmd.exe /c ...' command

 

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.5

** Summary changed:

- [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 changed:

+ **************** 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

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1893319

Title:
  [Sikuli 2.0.x] Issue in openApp with 'cmd.exe /c ...' command ---
  workaround

Status in Sikuli:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1893319/+subscriptions


References