author | Claus Gittinger <cg@exept.de> |
Thu, 15 Dec 2005 16:09:35 +0100 | |
changeset 670 | 7f89ef33a8cf |
parent 668 | 2050356eb7a8 |
child 672 | 43a67655f4f2 |
permissions | -rw-r--r-- |
4 | 1 |
"* |
609 | 2 |
* Encoding: iso8859-1 |
3 |
* |
|
4 | 4 |
* $Header$ |
5 |
* |
|
399 | 6 |
* MIMEType: application/x-smalltalk-source |
7 |
* |
|
209 | 8 |
* ST/X startup configuration & command file: |
9 |
* |
|
4 | 10 |
* sample private.rc - file |
11 |
* |
|
52 | 12 |
* a copy of this file can (should) reside in $home/.smalltalk/private.rc or |
13 |
* in the current directory - put all private preferences in here. |
|
41 | 14 |
* |
15 |
* |
|
25 | 16 |
* notice, you will find some things enclosed in |
464 | 17 |
* ... thisIsMySystem ifTrue:[ |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
18 |
* ... claus ifTrue:[ |
607 | 19 |
* |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
20 |
* these are my personal preferences which will be |
25 | 21 |
* ignored in your environment, but are taken in mine. |
22 |
* That way, I dont have to maintain two different 'private.rc' files. |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
23 |
* (you may want to have a look into it - some is of general interest) |
4 | 24 |
*" |
25 |
||
25 | 26 |
"/ |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
27 |
"/ define the language (you can also set the LANG-shell variable) |
532 | 28 |
"/ (currently #en, #de and #fr are supported). |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
29 |
"/ some fragments for other languages (japanese ;-) exist. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
30 |
"/ Setting it here will override the LANG variable setting, |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
31 |
"/ if neither set here nor in LANG, #english is the default. |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
32 |
"/ see (and enhance) the resource files |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
33 |
"/ |
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
34 |
"/ Smalltalk language:#de. |
607 | 35 |
"/ Smalltalk language:#en. |
488
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
36 |
|
521e2d58f050
Changed workstation initialization.
Stefan Vogel <sv@exept.de>
parents:
483
diff
changeset
|
37 |
"/ |
198
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
38 |
"/ you may limit the amount of memory allocated to |
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
39 |
"/ dynamic compiled code ... |
607 | 40 |
"/ The default is unlimited; |
204 | 41 |
"/ If you run in a multiuser environment, or |
42 |
"/ short on swapSpace, a good limit is some 0.5 to 1Mb. |
|
198
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
43 |
"/ |
7bbdd3d72cea
oops - dont set the codeLimit to 64k on all machines
Claus Gittinger <cg@exept.de>
parents:
195
diff
changeset
|
44 |
|
318 | 45 |
"/ ObjectMemory dynamicCodeLimit:500000. |
167 | 46 |
|
47 |
"/ |
|
318 | 48 |
"/ If local sources should have preference over source code management |
49 |
"/ (only useful, if you have the full version (including sourceCode mgmnt), |
|
50 |
"/ and CVS access is slow. |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
51 |
"/ |
318 | 52 |
"/ Class tryLocalSourceFirst:true. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
53 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
54 |
"/ |
25 | 55 |
"/ this turns off error/fatal messages from the VM |
56 |
"/ (it does not really make sense to turn them off) |
|
57 |
"/ |
|
58 |
"/ Smalltalk debugPrinting:false. |
|
59 |
||
60 |
"/ |
|
61 |
"/ set the package for fileIns done below |
|
62 |
"/ |
|
24 | 63 |
Project notNil ifTrue:[ |
445
63ae447a1510
project setting during initial fileIns
Claus Gittinger <cg@exept.de>
parents:
444
diff
changeset
|
64 |
|p| |
63ae447a1510
project setting during initial fileIns
Claus Gittinger <cg@exept.de>
parents:
444
diff
changeset
|
65 |
|
63ae447a1510
project setting during initial fileIns
Claus Gittinger <cg@exept.de>
parents:
444
diff
changeset
|
66 |
p := Project new. |
63ae447a1510
project setting during initial fileIns
Claus Gittinger <cg@exept.de>
parents:
444
diff
changeset
|
67 |
p package:#'goody-fileIn'. |
63ae447a1510
project setting during initial fileIns
Claus Gittinger <cg@exept.de>
parents:
444
diff
changeset
|
68 |
p comment:'only for goodies'. |
63ae447a1510
project setting during initial fileIns
Claus Gittinger <cg@exept.de>
parents:
444
diff
changeset
|
69 |
Project current:p. |
24 | 70 |
]. |
71 |
! |
|
72 |
||
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
73 |
|whoAmI domain thisIsMySystem thisIsExeptsDomain conf systemType incDir includes| |
91 | 74 |
|
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
75 |
whoAmI := OperatingSystem getLoginName. |
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
76 |
domain := OperatingSystem getDomainName. |
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
77 |
thisIsExeptsDomain := (domain = 'exept.de'). |
464 | 78 |
thisIsMySystem := (whoAmI = 'cg') and:[thisIsExeptsDomain]. |
279
289856108844
renamed mswindows3.style to mswindows95.style
Claus Gittinger <cg@exept.de>
parents:
275
diff
changeset
|
79 |
|
152 | 80 |
thisIsMySystem ifTrue:[ |
217 | 81 |
"/ |
249 | 82 |
"/ I want the hostname to be prepended to a windows label |
83 |
"/ |
|
84 |
StandardSystemView includeHostNameInLabel:true. |
|
318 | 85 |
]. |
249 | 86 |
|
318 | 87 |
thisIsMySystem ifTrue:[ |
249 | 88 |
"/ |
217 | 89 |
"/ I prefer a smaller menu font |
90 |
"/ |
|
257 | 91 |
"/ MenuView defaultFont:(MenuView defaultFont size:10). |
318 | 92 |
]. |
161 | 93 |
|
318 | 94 |
"/ add my private directories to the searchPath ... |
95 |
"/ This does not make sense in your environment. |
|
96 |
"/ However, I leave the code here to show how its done. |
|
97 |
"/ |
|
98 |
thisIsMySystem ifTrue:[ |
|
99 |
#( |
|
660 | 100 |
"/ '../../not_delivered' |
101 |
"/ '../../private_classes' |
|
102 |
"/ '../../fileIn/not_delivered' |
|
103 |
"/ '../../libpro' |
|
318 | 104 |
) do:[:p | |
105 |
p asFilename exists ifTrue:[ |
|
670 | 106 |
(Smalltalk systemPath includes:(p asFilename pathName)) ifFalse:[ |
107 |
Smalltalk systemPath addFirst:(p asFilename pathName). |
|
108 |
] |
|
318 | 109 |
] |
110 |
]. |
|
111 |
]. |
|
112 |
||
25 | 113 |
"/ since smalltalk keeps track of which directories exist |
114 |
"/ in the path, this cache has to be flushed whenever new directories |
|
217 | 115 |
"/ are added to the system path: |
25 | 116 |
"/ |
24 | 117 |
Smalltalk flushPathCaches. |
16 | 118 |
|
25 | 119 |
"/ |
120 |
"/ color allocation strategy: |
|
121 |
"/ |
|
122 |
"/ the default is to allocate from the colormap as required. |
|
123 |
"/ As long as the number of distinct colors used is less than the number |
|
124 |
"/ of available colors (which is usually the case) this leads to better looking |
|
125 |
"/ images. |
|
126 |
"/ However, if many images are to be displayed simulatiously, images displayed |
|
127 |
"/ first may steal too many colors required in images displayed later. |
|
128 |
"/ In this case, it is better to preallocate some colors, and dither all images |
|
129 |
"/ using theese. Of course, while making the worst case better, this makes |
|
130 |
"/ the best case worse. You can decide ... |
|
131 |
"/ |
|
10 | 132 |
"/ Color getColors6x6x4. |
133 |
||
134 |
||
25 | 135 |
"/ claus: |
26 | 136 |
"/ The history manager automatically adds a history line to changed |
137 |
"/ methods and optionally to a classes history method. |
|
217 | 138 |
"/ if you dont like this, comment the following lines. |
26 | 139 |
"/ |
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
326
diff
changeset
|
140 |
thisIsExeptsDomain ifTrue:[ |
26 | 141 |
HistoryManager notNil ifTrue:[ |
656 | 142 |
'private.rc [info]: activating HistoryManager...' infoPrintCR. |
26 | 143 |
HistoryManager activate. |
144 |
] |
|
7 | 145 |
]. |
41 | 146 |
|
147 |
"/ claus: |
|
180 | 148 |
"/ I startup the rdoit server process; |
149 |
"/ (using rdoit to start ST/X views via window manager menus ...) |
|
217 | 150 |
"/ If you like (and want) this to be also started automatically, |
151 |
"/ replace the if- by 'true ifTrue:...' or remove the if. |
|
180 | 152 |
"/ |
204 | 153 |
" |
180 | 154 |
thisIsMySystem ifTrue:[ |
656 | 155 |
'private.rc [info]: starting RDoItServer...' infoPrintCR. |
199 | 156 |
Autoload autoloadFailedSignal handle:[:ex | |
157 |
'private.rc [warning]: cannot load RDoItServer' errorPrintCR |
|
204 | 158 |
ex return |
199 | 159 |
] do:[ |
204 | 160 |
RDoItServer autoload. |
161 |
RDoItServer start. |
|
162 |
RDoItServer allowHost:'localhost'. |
|
199 | 163 |
] |
180 | 164 |
]. |
204 | 165 |
" |
180 | 166 |
|
167 |
"/ claus: |
|
41 | 168 |
"/ I dont want those warnings about stx features being non-portable ... |
169 |
"/ However, you should (at least when new to the system) see them. |
|
170 |
"/ Once you get bored about them, make the below unconditional. |
|
152 | 171 |
"/ (you can also turn them off in the Launchers settings menu ...) |
41 | 172 |
"/ |
607 | 173 |
Compiler warnPossibleIncompatibilities:false. |
236 | 174 |
Compiler warnSTXSpecials:false. |
607 | 175 |
Compiler allowUnderscoreInIdentifier:true. |
176 |
Compiler warnUnderscoreInIdentifier:false. |
|
25 | 177 |
|
166 | 178 |
|
25 | 179 |
"/ set the package back to some useful default for programming |
180 |
"/ this is the package token assigned (by default) to all new methods/classes |
|
181 |
"/ (so you can use a browser on package=#private to find all of your new |
|
182 |
"/ stuff easily. (the conditional on Project being nonNil is for stripped down |
|
183 |
"/ systems without a Project class) |
|
184 |
||
185 |
Project notNil ifTrue:[ |
|
186 |
Project setDefaultProject. |
|
444 | 187 |
"/ Project current package:#'private'. |
25 | 188 |
]. |
8 | 189 |
! |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
190 |
|
386
5be25f341b4f
use new version diff browser by default
Claus Gittinger <cg@exept.de>
parents:
361
diff
changeset
|
191 |
"/ |
5be25f341b4f
use new version diff browser by default
Claus Gittinger <cg@exept.de>
parents:
361
diff
changeset
|
192 |
"/ any personal file (p_<username>.rc) ? |
5be25f341b4f
use new version diff browser by default
Claus Gittinger <cg@exept.de>
parents:
361
diff
changeset
|
193 |
"/ |
307 | 194 |
Smalltalk fileIn:('p_' , OperatingSystem getLoginName , '.rc'). |
306 | 195 |
|
126 | 196 |
(Smalltalk commandLine includes:'-q') ifFalse:[ |
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
197 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
198 |
"/ this turns off/on information messages from classes |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
199 |
"/ (such as 'D8IMAGE: allocating colors ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
200 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
201 |
"/ Object infoPrinting:false. |
607 | 202 |
OperatingSystem hasConsole ifTrue:[ |
462 | 203 |
Object infoPrinting:true. |
204 |
]. |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
205 |
|
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
206 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
207 |
"/ this turns off/on information messages from the VM |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
208 |
"/ (such as 'MEM: chitty chatty ...' |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
209 |
"/ |
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
210 |
"/ ObjectMemory infoPrinting:false. |
607 | 211 |
OperatingSystem hasConsole ifTrue:[ |
462 | 212 |
ObjectMemory infoPrinting:true. |
213 |
] |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
214 |
]. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
215 |
|
326 | 216 |
"/ |
217 |
"/ startBlocks will be evaluated after the thread-scheduler have been started |
|
218 |
"/ and the displays event dispatcher is running. |
|
219 |
"/ |
|
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
220 |
Smalltalk addStartBlock:[ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
221 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
222 |
"/ start some views ... |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
223 |
"/ you can add all stuff you'd like to come up by default |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
224 |
"/ the first time. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
225 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
226 |
|
611 | 227 |
'private.rc [info]: starting main-menu...' infoPrintCR. |
289 | 228 |
Text new. "/ to avoid visible messages in minitalk |
617
f6afee16b359
Add --quick options to come up without gimmicks
Stefan Vogel <sv@exept.de>
parents:
611
diff
changeset
|
229 |
|
465 | 230 |
NewLauncher open. |
668 | 231 |
((Smalltalk commandLineArguments includes:'--quick') |
232 |
or:[(Smalltalk commandLineArguments includes:'--faststart') |
|
233 |
or:[(Smalltalk commandLineArguments includes:'--fastStart')]]) |
|
234 |
ifFalse:[ |
|
633 | 235 |
"/ |
236 |
"/ disable this if you don't like the other window to come up |
|
237 |
"/ |
|
238 |
WorkspaceApplication openSystemWorkspace. |
|
483 | 239 |
]. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
240 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
241 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
242 |
"/ start a SystemBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
243 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
244 |
"/ |
611 | 245 |
"/ NewSystemBrowser open. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
246 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
247 |
"/ |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
248 |
"/ start a FileBrowser |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
249 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
250 |
"/ |
611 | 251 |
"/ FileBrowserV2 open. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
252 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
253 |
"/ |
607 | 254 |
"/ start a Workspace |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
255 |
"/ - I dont want one (using Launcher) |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
256 |
"/ |
611 | 257 |
"/ WorkspaceApplication open. |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
258 |
]. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
141
diff
changeset
|
259 |
|
123
a974136fe017
startup infoPrinting suppressable (-q flag)
Claus Gittinger <cg@exept.de>
parents:
118
diff
changeset
|
260 |
! |