Progress Bar in Ubuntu 10.04 and Math.Random()
Bruno Moreira Alves
bruno at pixelti.com.br
Wed Jul 28 07:32:34 PDT 2010
Hi everyone, been having some realy hard time with plymouth customizing
here...
I'm using Ubuntu 10.04 Lucid Lynx... I was trying out some themes, but
realized that every theme that shows a progress bar doesn't properly
work... the boot process finishes and the progress bar is still around
15%.... even the ubuntu-studio theme installed from ubuntu repositories
show the same thing....
why?
and another thing....
since i wasn't getting a proper progress bar, I started playing around
with other themes, so I got the MIB-Ubuntu theme, and created seven
different backgrounds, named bg1.png, bg2.png... , my idea is that every
boot up/down one of these backgrounds would be randomly selected, so I
have added the following lines to the script:
randombg = Math.Int(Math.Random()* 6.9) + 1 ;
and
background.original_image = ImageNew("bg"+ randombg +".png");
it works, but everytime is the same background, the random function, is
using alway the same seed I suppose?
I've tried loading all images, and randomly selecting one of them, but
that only made de plymouth take a longer time to load, but still showed
always the same bg....
More information about the plymouth
mailing list