diff options
Diffstat (limited to 'Master/texmf-dist/source/support/tlcockpit/src/main/scala/TeXLive/OsTools.scala')
-rw-r--r-- | Master/texmf-dist/source/support/tlcockpit/src/main/scala/TeXLive/OsTools.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TeXLive/OsTools.scala b/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TeXLive/OsTools.scala index 38d0c334d99..4590eb6b5c5 100644 --- a/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TeXLive/OsTools.scala +++ b/Master/texmf-dist/source/support/tlcockpit/src/main/scala/TeXLive/OsTools.scala @@ -5,7 +5,7 @@ import scala.concurrent.ExecutionContext.Implicits.global import sys.process._ object OsTools { - val OS = System.getProperty("os.name").map(_.toLower) + val OS: String = System.getProperty("os.name").map(_.toLower) def isWindows: Boolean = { OS.startsWith("windows") } @@ -19,7 +19,7 @@ object OsTools { def openFileCmd(f: String): Seq[String] = { val absf = new java.io.File(f).getCanonicalPath if (isWindows) { - Seq("cmd", "start", absf) + Seq("cmd", "/c", "start", absf) } else if (isApple) { Seq("open", absf) } else { |