Kevin Vance - The windows startup sound is broken. Because it takes about 25…

Entries | Archive | Friends | Friends' Friends | User Info

02:31 am

Thursday, October 13th, 2005
Previous Entry Share Next Entry
The windows startup sound is broken. Because it takes about 25 seconds from the login prompt to a responsive system, it is not unreasonable to have loading music playing the whole time. I just have this thing for loadertunes, bear with me.

(Yeah, I know this could grate on you if you reboot your system every day. I only turn mine on once or twice a month.)

My first try was to make a python script to play the sound (using SDL_mixer) and place it in HKLM\...\Run. But since the order of execution is undefined, the sound didn't play until the loading was almost finished.

My next idea was to place it in HKLM\...\RunOnce, and have it add itself back after every execution. And it indeed ran first... and nothing was allowed to continue until the music stopped. I tried having it fork spawn a new copy of itself to do the work, but windows was too smart for that.

It seems like the way to go is to run it as a service that listens to the event log and plays the music when a login event is recorded. I haven't done it yet, but I will. I don't mind a little win32 here and there, it reminds me of how good I've got it on the other side ;)

Current Music Chris Lightfoot (TLF) - Pucca City II
Link )Reply )

Comments
[User Picture]From: wikle
2005-10-14 01:44 pm (UTC)
I can't believe your trying to add things on to windows.. Its not like you can free its inner penguin ;-)
(Reply) (Thread)