#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Tue, 07 May 2019 10:11:08 +0200
changeset 24109 35c666f2971b
parent 24108 7a3a01285e59
child 24110 ffabe63bb793
#REFACTORING by stefan class: Win32OperatingSystem class added: #commandNeedsShowWindowFlag:
Win32OperatingSystem.st
--- a/Win32OperatingSystem.st	Tue May 07 10:08:34 2019 +0200
+++ b/Win32OperatingSystem.st	Tue May 07 10:11:08 2019 +0200
@@ -1092,7 +1092,6 @@
     "Modified: 7.1.1997 / 19:36:11 / stefan"
 ! !
 
-
 !Win32OperatingSystem class methodsFor:'OS signal constants'!
 
 sigABRT
@@ -4774,6 +4773,20 @@
     "Created: / 08-11-2016 / 21:23:17 / cg"
 ! !
 
+!Win32OperatingSystem class methodsFor:'executing OS commands-queries'!
+
+commandNeedsShowWindowFlag:cmd
+    "this is a windows speciality (again).
+     Check against the set of commands which need the showWindow flag."
+
+    "kludge - notepad.exe on Windows does not open a window without showWindow set to true.
+     all others like notepad++, excel, libreoffice do"
+
+    ^ cmd includesString:'notepad.exe'.
+
+    "Modified: / 07-05-2019 / 08:05:38 / Stefan Vogel"
+! !
+
 !Win32OperatingSystem class methodsFor:'file access'!
 
 basicRemoveFile:fullPathName