AbstractOperatingSystem.st
changeset 22660 87d59b5e0154
parent 22654 89f1648e4a05
child 22682 4f335ee59b1d
--- a/AbstractOperatingSystem.st	Tue Mar 27 19:30:47 2018 +0200
+++ b/AbstractOperatingSystem.st	Tue Mar 27 20:13:30 2018 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1988 by Claus Gittinger
 	      All Rights Reserved
@@ -2565,6 +2563,21 @@
     self subclassResponsibility
 !
 
+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"
+
+    "/ please refactor into Win32OperatingSystem...
+    "/ I have non at the moment
+    self isMSWINDOWSlike ifTrue:[
+        (cmd includesString:'notepad.exe') ifTrue:[^ true].
+    ].
+    ^ false.
+!
+
 executableFileExtensions
     "return a collection of extensions for executable program files.
      Only req'd for msdos & vms like systems ..."