Wife friendly startup-sequence

A forum for general AmigaOS 4.x support questions that are not platform-specific
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1744
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Wife friendly startup-sequence

Post 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
User avatar
Severin
Beta Tester
Beta Tester
Posts: 189
Joined: Mon Dec 20, 2010 1:41 pm

Re: Wife friendly startup-sequence

Post 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.
Post Reply