Commit graph

1090 commits

Author SHA1 Message Date
Charlie Brej
bdfbdf65b9 [script] Reference actual object and do not create an indirect reference 2009-09-09 21:17:07 +01:00
Charlie Brej
2a6b3da179 [script] Free the scan only after adding the last debug symbol
Was causing valgrind errors of access to freed locations as the scan name was
freed.
2009-09-09 21:17:07 +01:00
Ray Strode
736822e2f2 [populate-initrd] Try to find inst more aggressively
We've been using the inst function provided by mkinitrd
to install plymouth and its dependencies into the initrd
root, but mkinitrd may not be installed in a dracut world,
and dracut has its own inst function.

This commit tries getting access to either of them, before
bailing. At some point we may want to bundle our own inst
function or get a new flag added to /usr/bin/install to do
what inst does.
2009-09-09 11:26:46 -04:00
Frederic Crozat
ba0c9f50f9 move switch_to_vt to ply-utils and rename it ply_switch_to_vt 2009-09-04 16:19:38 +02:00
Frederic Crozat
18e7adba61 Merge git://anongit.freedesktop.org/plymouth into splash-client-lib 2009-09-04 11:12:08 +02:00
Charlie Brej
ff2654546d [script] Clean up as_numer and as_bool functions
As_bool now returns false for 0.0 and NAN. It uses the fpclassify which should
be a clean way of testing for zero. The as_number function simplifies a switch
to an if.
2009-09-03 21:10:56 +01:00
Frederic Crozat
649db0de61 Merge branch 'master' into splash-client-lib 2009-09-03 19:35:30 +02:00
Frederic Crozat
9917545c9e Merge branch 'master' of git://anongit.freedesktop.org/plymouth 2009-09-03 19:35:01 +02:00
Charlie Brej
6934a8422e [script] Add script support for suspend and resume splash modes 2009-09-03 17:00:17 +01:00
Charlie Brej
7e547299a8 [boot-splash-plugin] Add suspend and resume boot splash modes 2009-09-03 16:57:31 +01:00
Charlie Brej
74f4711e77 [script] Add PlymouthGetMode to get boot/shutdown mode
PlymouthGetMode replies the mode as a string of "boot" or "shutdown".
2009-09-03 16:25:01 +01:00
Frederic Crozat
57d93340e8 [libply] allow access to ply_event_loop_process_pending_events 2009-09-03 16:36:23 +02:00
Frederic Crozat
053ca5cf13 [libplybootsplash] move ply-boot-splash.[ch] to libplybootsplash 2009-09-03 16:30:44 +02:00
Frederic Crozat
391dffb5a6 Merge branch 'master' of git://anongit.freedesktop.org/plymouth 2009-09-03 16:09:17 +02:00
Charlie Brej
a65e402dcc [progress] Make the progress percentage settable
The progress percentage is now settable. By "settable" this doesn't mean the
value will change to the new value, the set value is only a hint as to where
the progress should be at this point in time. So it it overshot or under-run,
the hint is used to determine how much time is left, and how fast to move the
bar.
2009-09-03 13:45:41 +01:00
Charlie Brej
7ab622fb40 [script] Set "this" in functions called through an object
When functins are called as an element of an object (e.g. obj.func(par) ), the
object is passed into the function execution as "this" in the local context.
2009-09-02 21:21:05 +01:00
Charlie Brej
082d520605 [script] Use access functions when accessing variables
Rather than directly accessing hash tables when accessing variables, use the
abstraction functions. Adds a peek function which does not create a new object
is one has not been defined already.
2009-09-01 21:19:51 +01:00
Charlie Brej
a0989cf97c [script] Move function definitions from operations to expressions
This removes some of the duplication due to the two methods of creating
functions. Now function definitions like:

fun name (foo) {bar}

are treated as

name = fun (foo) {bar};

No script code needs to change as both are still valid.
2009-09-01 20:32:05 +01:00
Frederic Crozat
267008cd21 [daemon] splash=verbose is equivalent to no splash (splashy compatibility) 2009-09-01 19:01:28 +02:00
Charlie Brej
4539abfba2 [script] Generate error messages on erroneous operations 2009-08-31 01:17:56 +01:00
Charlie Brej
e84fc98325 [script] Add a expressions and operators to the debug hashtables 2009-08-31 00:24:08 +01:00
Charlie Brej
88064f16bf [script] Add debug information to parsed operations 2009-08-30 23:41:15 +01:00
Charlie Brej
755dabe67c [script] Pass the debug position when creating all expression elements
Will be used later to form a debug table
2009-08-30 22:14:59 +01:00
Charlie Brej
b5b0ace532 [script] Keep the filename while scanning for parsing error messages 2009-08-30 20:53:13 +01:00
Charlie Brej
6be18908b2 [script] Adds debug support source files 2009-08-30 19:07:51 +01:00
Charlie Brej
0b4bb63bae [script] Move op generation to constructor functions
moves all construction of OPs to one place to allow adding debug info.
2009-08-30 18:19:08 +01:00
Ray Strode
803204e6cb [scripts] add plymouth-generate-initrd script
One useful way to use plymouth is by installing it into
an auxillary initrd image, that overlays the primary one.

This allows plymouth and its current theme to get updated
indepedently of the kernel and the rest of the initrd
stuff.

plymouth-generate-initrd creates an initrd named:

     initrd-plymouth.img

in /boot that is suitable for use a second initrd on
the initrd line in grub.conf.
2009-08-28 20:04:17 -04:00
Charlie Brej
92d75daf5a [script] Move expression generation to constructor functions
This is in preparation for debugging support
2009-08-28 16:38:08 +01:00
Charlie Brej
bafe3437ea [main] Allow debug output file to be set on the command line 2009-08-27 16:57:12 +01:00
Charlie Brej
7700889c69 [script] Remove a line used for debugging 2009-08-27 16:30:14 +01:00
Charlie Brej
f86e899810 [script] Add support for Infinity and NaN
The rules are inhertited from C (NaN != NaN etc).
2009-08-27 15:33:16 +01:00
Charlie Brej
fec26df01c [script] Remove integer objects and rename floats "numbers"
Integers were upgraded to floats during many operations and there was no real
advantage to keep them.
2009-08-26 18:07:48 +01:00
Ray Strode
d633072a71 [populate-initrd] Get plugin path from plymouth
Previously, we'd try to guess the plugin path based
on the arch of the running process.  That's sort of
fragile, so better to just install plugins where
plymouth says it's going to look for them.
2009-08-25 14:53:31 -04:00
Ray Strode
d2a3fbe75f [configure] Bump to 0.7.1 2009-08-25 13:30:44 -04:00
Ray Strode
25bac96695 [glow] Soften corners of entry box
They (somewhat) have the illusion of roundness now.
2009-08-25 13:15:17 -04:00
Ray Strode
3aca57aa35 [glow] Update bullet to be more like GTK+ default
It makes things look more consistent.
2009-08-25 13:15:08 -04:00
Frederic Crozat
9da0276853 [script] use dialog instead of dialogue 2009-08-25 15:59:30 +02:00
Ray Strode
16f326ccc8 [utils] Force modules to stay resident after close
Some modules (the label plugin in particular) use
libraries with static data that don't do well with
being unmapped and remapped later.

This commit changes the module loading call so that
plugins aren't unmapped at close time (the close
is effectively ignored).  This simplifies things
for now.

At some point we may want to make it decidable on
a per plugin basis.
2009-08-25 07:43:09 -04:00
Ray Strode
24f86e7a50 [script] Force graphics mode before each frame
It's what all the other boot splash plugins do.  This
is important because things occasionally muck with the
terminal during boot up (knocking it out of raw mode, etc),
and resetting the window graphics mode resets the terminal
settings as well.

Future, potentially better alternatives to this could be:

1) TIOCSLCKTRMIOS to lock the terminal settings
2) Using /dev/input instead of the tty for keyboard input
2009-08-24 21:25:52 -04:00
Ray Strode
51f613548c [main] Don't try to write debug buffer if open fails
Before we would try to use the fd causing assertion failures.
2009-08-24 13:48:01 -04:00
Ray Strode
77fe2c0e11 [main] initialize debug_buffer_path when --debug but no plymouth:debug
Before it wasn't ever getting set, causing crashes with --debug
in some cases.
2009-08-24 13:46:12 -04:00
Ray Strode
d75e8cf26e [animation] don't go into loop with 0 frame animations
The animation class doesn't handle its frames missing
too well right now.  In fact, it goes into an infinite
loop instead of completing.

This commit fixes that.
2009-08-24 09:48:24 -04:00
Frederic Crozat
ff959dbd2f [script] add support for message in script 2009-08-19 15:56:15 +02:00
Frederic Crozat
fc2cbc497a [script] Display password dialog even if called twice 2009-08-18 19:19:13 +02:00
Charlie Brej
a4836e83fe [image] Scale images not using data beyond the edge of the last pixel
When using 1 pixel wide images and stretching them, the result is a fade
between the pixel data and the transparent pixels beyond the end of the image.
2009-08-18 16:39:50 +01:00
Ray Strode
72b13eb70d [window] Reopen tty if disconnected
Some init implementations forcefully take over the tty after rc.sysinit
with the TIOCSCTTY ioctl, forcing plymouth's connection to the tty
to get dropped.  This comment just reopens the tty if it gets taken
over.

It may make sense at some point to use /dev/input for catching input
events instead of the tty, to side step these kinds of problems.
2009-08-14 08:44:47 -04:00
Charlie Brej
25f5ddeb05 [image] Supply correct width and height limits to interpolate
The supplied width and height were for the new rather than the old image so
some reads would access pixels beyond the edge of the image.
2009-08-11 16:47:37 +01:00
Frederic Crozat
52f9e0eae9 [daemon] fix fd leak 2009-08-11 17:25:41 +02:00
Frederic Crozat
ca3b1505ec [client] Fix memleak at exit 2009-08-11 17:25:41 +02:00
Frederic Crozat
093966a300 [client] Fix memleak in command argument 2009-08-11 17:25:41 +02:00