Opened 18 years ago

Closed 16 years ago

Last modified 15 years ago

#1202 closed enhancement (fixed)

UserBootscript etc. missing from $HOME/config/boot

Reported by: humdinger Owned by: axeld
Priority: normal Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

The folder $HOME/config/boot with all user scripts is yet missing from the image.

I attached an archive with UserBootscript, UserSetupEnvironment, UserShutdownFinishScript and UserShutdownScript to this ticket you may want to use or modify.

The contents is very much inspired by the R5 scripts, esp. the UserSetupEnvironment, that I pretty much took as supplied and just altered the first paragraph a bit and applied StyledEdit niceties.

The UserBootscript includes an Autostart folder that would also have to be created in $HOME/config/boot/ . You may want to discuss the Autostart idea first. Personally I think it's great for endusers that don't want to mess with scripts and having certain apps always start on startup is quite essential. Also, a link to the folder in the Deskbar wouldn't be too bad. There were some more sophisticated solutions around that took startup priority into account. I always considered those a bit over the top. If you need to have apps started in a particular order, most of the time they are interdependent and just a proiority won't have one app waiting until another is completely started. For that kind of thing, you'll need to dig a bit deeper and get involved with the UserBootscript and stuff like sleep and waitfor. IMO.

I'm also not sure if we need to provide these scripts as "*.sample" that have to be renamed before use. Empty as they come they won't hurt and if someone adds commands they just work.

I'm sorry for this long ticket. It just got more and more... :)

Attachments (2)

UserScripts.zip (4.7 KB ) - added by humdinger 18 years ago.
User scripts
userbootscripts.patch (2.2 KB ) - added by mmadia 16 years ago.

Download all attachments as: .zip

Change History (7)

by humdinger, 18 years ago

Attachment: UserScripts.zip added

User scripts

comment:1 by marcusoverhagen, 18 years ago

please note that we cannot use original beos hrev5 files, altered or not

comment:2 by humdinger, 18 years ago

Hmmm... I guess that would at least rule out the UserSetupEnvironment. I'm also not sure if we even need a SetupEnvironment right now. The others are virtually empty, aside from the Autostart thing in UserBootscript which R5 didn't have. You're left with only the comments in each file which I have tried to shorten, compared to their R5 counterparts. You'll be hard pressed coming up with helpful comments that don't resemble those of R5.

by mmadia, 16 years ago

Attachment: userbootscripts.patch added

comment:3 by mmadia, 16 years ago

Created patch to add $HOME/config/boot/UserBootscript.sample and UserSetupEnvironment.sample to HaikuImage

Both files are original creations with inspiration derived from build/jam/UserBuildConfig.sample

Since Haiku does not currently contain beos/system/boot/ShutdownFinishScript nor ShutdownScript, the User*.sample equivalents have been omitted. Perhaps that should be filed as a new ticket?

comment:4 by stippi, 16 years ago

Resolution: fixed
Status: newclosed

Thanks, I've commited the patch in hrev29814.

in reply to:  3 comment:5 by jonas.kirilla, 15 years ago

Replying to mmadia:

Since Haiku does not currently contain beos/system/boot/ShutdownFinishScript nor ShutdownScript, the User*.sample equivalents have been omitted. Perhaps that should be filed as a new ticket?

#4444

Note: See TracTickets for help on using tickets.