comparison src/name/blackcap/clipman/Main.kt @ 63:8c6d6ad92aa1 last-old-threading

Commit most recent changes.
author David Barts <n5jrn@me.com>
date Sun, 12 Jan 2025 10:22:05 -0800
parents 88056f373a94
children ca0fab758ff9
comparison
equal deleted inserted replaced
62:c56a0747c256 63:8c6d6ad92aa1
215 } 215 }
216 216
217 217
218 /* entry point */ 218 /* entry point */
219 fun main(args: Array<String>) { 219 fun main(args: Array<String>) {
220 setUpErrors()
220 LOGGER.log(Level.INFO, "beginning execution") 221 LOGGER.log(Level.INFO, "beginning execution")
221 if (OS.type == OS.MAC) { 222 if (OS.type == OS.MAC) {
222 System.setProperty("apple.laf.useScreenMenuBar", "true") 223 System.setProperty("apple.laf.useScreenMenuBar", "true")
223 System.setProperty("apple.awt.application.name", MYNAME) 224 System.setProperty("apple.awt.application.name", MYNAME)
224 } 225 }
225 inSwingThread { 226 inSwingThread {
226 Application.initialize() 227 Application.initialize()
227 } 228 }
228 } 229 }
230
231 private fun setUpErrors() {
232 val ps = java.io.PrintStream(
233 java.io.FileOutputStream(ERR_FILE), true, CHARSET)
234 System.setOut(ps)
235 System.setErr(ps)
236 }