stxapp.rc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 06 Jun 2016 16:57:13 +0100
branchjv
changeset 1437 a208060f13b0
parent 609 f0f51d4a0066
child 1455 e5eada398b16
permissions -rw-r--r--
Fixed UNIX makefiles to include classes in stx:projects/smalltalk package ...like they are in Windows builds. The problem is that UNIX Make.proto is (still) hand-written.

"/ Encoding: iso8859-1
"/
"/ $Header$
"/
"/ MIMEType: application/x-smalltalk-source
"/
"/ ST/X startup command file:
"/
"/ example for a very simple startup file for standAlone applications
"/ this is read for standAlone apps, if no <commandName>.rc is found.
"/
"/ without an stxapp.rc, no display is opened and no setup of keyboardMap or viewStyle
"/ is performed - this still works correctly, but may be invonvenient for the
"/ user ...

[
    Screen openDefaultDisplay:nil.
] on:Screen deviceOpenErrorSignal do:[:ex|
    ('smalltalk.rc [warning]: No Display connection to: ', ex parameter) errorPrintCR.
]
Display notNil ifTrue:[
    Smalltalk fileIn:'display.rc'
    Smalltalk fileIn:'keyboard.rc'
].
Smalltalk silentLoading:true.
!