Page 2 of 2

Re: Wife friendly startup-sequence

Posted: Sun Jan 06, 2013 6:43 pm
by nbache
Severin wrote:Grab an old app from aminet called mousewarn
Also a good solution, but keep Startup-Sequence free of changes if at all possible.

User-Startup is executed synchronously before LoadWB, so the prefs file copying can all safely happen in User-Startup and be done in time for LoadWB.

BTW, if I were to make such a feature, I'd make two different WBStartup setups and save them under different prefs file names, then copy one or the other to ENVARC:Sys/wbstartup.prefs as needed.

Best regards,

Niels

Re: Wife friendly startup-sequence

Posted: Sun Jan 06, 2013 6:58 pm
by Severin
Yes it could easily be moved to user-startup, I also thought of the dual wbstartup.prefs files but if the system is just to run owb then it's simpler just to turn off wbstartup.prefs.

I suppose a dual wbstartup.prefs in user-startup would look something like this:

Code: Select all

delete envarc:sys/wbstartup.prefs force quiet
set answer `requestchoice "User Selection" "Who is booting the system?" "Him|Her"`
if $answer EQ 1
  copy envarc:sys:wbstartup.prefs.hers envarc:sys/wbstartup.prefs
else
  copy envarc:sys:wbstartup.prefs.his envarc:sys/wbstartup.prefs
endif
unset answer ;not needed but neater ;)
Put OWBLauncher is her wbstartup and everything should be fine.