Commit graph

1580 commits

Author SHA1 Message Date
Ray Strode
3ec007a482 protocol: change socket path
Before we were using

  /ply-boot-protocol\0\0\0\0...\0

for our address which really uglifies /proc/net/unix
and doesn't match what a lot of other programs do.

This commit changes the address to just

  /org/freedesktop/plymouthd

which is much nicer.
2010-10-06 18:03:25 -04:00
Ray Strode
f0da04ca88 protocol: drop leading \0 from socket path
The socket path is currently defined to be:

 #define PLY_BOOT_PROTOCOL_SOCKET_PATH "\0/ply-boot-protocol"

The \0 is because it's an abstract socket, and abstract sockets
have a leading NUL.  The code always ignores the NUL though and
adds it back later, so it's not needed.

This commit just drops it.
2010-10-06 17:57:34 -04:00
Ray Strode
9de731ed29 utils: add support for "trimmed abstract" sockets
Right now plymouth listens on an abstract socket with a name
that has a bunch of trailing NUL bytes.  These zeroes uglify
the output of /proc/net/unix among other things.

This commit adds support for a new "trimmed abstract" socket
type, which drops the zeroes.

A subsequent commit will actually change plymouthd to use the
new api.
2010-10-06 17:43:50 -04:00
Ray Strode
da723a3033 set-default-theme: redirect to /dev/null not /null
The set-default-theme script was incorrectly redirecting
stderr from a grep command to /null instead of /dev/null.

This causes a /null file to get created on the filesystem.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30576
Reported by: David LeBlanc <leblancdw@yahoo.com>
2010-10-04 09:47:24 -04:00
Ray Strode
37522b68c3 viewer: Add a title to the status icon 2010-09-29 23:08:45 -04:00
Ray Strode
288a42120e set-default-theme: exit 0 at bottom of file
This is so that if there is no --rebuild-initrd it still
exits successfully.
2010-09-29 13:25:22 -04:00
Ray Strode
19f478819d terminal-session: add debug messages 2010-09-26 19:14:47 -04:00
Ray Strode
5b4ed8f35a terminal-session: try to continue logging after tty disconnect
Currently, we give up on boot logging after a tty disconnect.
This commit makes the terminal session reattach to the tty, and
continue logging.
2010-09-26 18:17:47 -04:00
Ray Strode
1caaa93837 terminal-session: rename "session_done" to "session_hangup"
In truth, we can get hangups at any time during boot.  It doesn't
mean the session is done, so use better terminology.
2010-09-26 17:59:23 -04:00
Ray Strode
784fbcfb09 main: add __DATE__ to debug prolog
When looking at debug logs, it's often useful to know
how old the build of plymouth featured in the log is.
2010-09-16 21:31:24 -04:00
Ray Strode
e418037965 main: add plymouthd: prefix to some error messages
This will make it clear the error messages are coming
from plymouthd and not some other component during boot.
2010-09-16 21:26:59 -04:00
Ray Strode
b65ec089bd main: use ply_error_without_new_line for help string
It already has new lines in it.
2010-09-16 21:17:50 -04:00
Ray Strode
7e6bc5ac63 utils: Improve debug spew in ply_create_daemon
Right now if plymouthd dies while daemonizing, we show a horrible
error message on the console:

could not read byte from child: Success

This commit mops that up, so we give a little clue why plymouthd's
child process died in its infancy.
2010-09-16 21:10:01 -04:00
Ray Strode
b7c7bdbf76 main: Fix up check_for_consoles
commit c40fd792b6 was just wrong.

Attempt to fix it up to be less awful.
2010-09-10 15:45:11 -04:00
Ray Strode
e6763666e1 utils: plug memory leak
commit ffdfb78be1 introduced
a memory leak because of a copy-and-paste-o.
2010-09-08 11:48:08 -04:00
Ray Strode
ffdfb78be1 boot-server: print who is making requests
One of the big painpoints in plymouth distro integration
out which distro scripts are calling into plymouthd.

This commit makes plymouthd output that information whenever
there is a request from a connected client.
2010-09-08 11:39:38 -04:00
Charlie Brej
2c46832e5d gitignore: Ignore generated script string files 2010-09-08 09:57:41 +01:00
Charlie Brej
845972a5c1 script: Add compatibility redirect for set message function 2010-09-08 09:54:33 +01:00
Charlie Brej
c418d0aa83 client: Alias display-message command to message for backward compatibility 2010-09-07 23:45:31 +01:00
Charlie Brej
74c461fffd command-parser: Allow commands to be aliased
Adds aliases to commands which allow backward compatibility to old names.
2010-09-07 23:44:43 +01:00
Charlie Brej
e50ece1f70 script: Implement hide message function in the example script theme
This leaves ugly spaces where messages used to be, but is simple.
2010-09-07 22:22:08 +01:00
Charlie Brej
b371740a73 script: Add hide message support to the script plugin themes
This also renames SetMessageFunction to SetDisplayMessageFunction, and adds
SetHideMessageFunction
2010-09-07 22:02:03 +01:00
Charlie Brej
e4267ccba1 main: Inform plugins of hidden messages
Informs plugins of each message that is now hidden. Later could match on
wild-cards, but plugins will get a list of exact string matches.
2010-09-07 21:49:44 +01:00
Charlie Brej
eed3b65b4c boot-splash: Add "hide message" splash plugin call
No splashes use this yet.
2010-09-07 21:45:57 +01:00
Charlie Brej
df5d6ded7e boot-splash: Clean up indenting and function order
Display normal, password, quastion should be together
2010-09-07 21:32:59 +01:00
Charlie Brej
e813a486ee boot-splash: Clean up indenting 2010-09-07 21:29:11 +01:00
Charlie Brej
bdd6d45211 main: Remove the hidden message from the message list
The plugins are not updated unless they are switched off and on again
2010-09-07 21:25:10 +01:00
Charlie Brej
c21bc99eee boot-client: Add hide-message client command
This renames "message" command to "display-message".
2010-09-07 21:23:14 +01:00
Charlie Brej
1244d41fdd boot-server: Add "hide message" handler to boot server
Main server currently sets this to NULL to disable this callback.
2010-09-07 20:53:48 +01:00
Charlie Brej
0331ff6102 protocol: Add "hide message" command to the protocol
This also renames the "message" command to "show message".
2010-09-07 20:35:28 +01:00
Colin Watson
e61e740e64 details: Implement display_message
Messages are queued until any question or password entry prompts
complete.

https://bugs.freedesktop.org/show_bug.cgi?id=29035
2010-09-07 14:32:48 -04:00
Colin Watson
76222a08e8 main: Open /proc/cmdline by absolute path
Open /proc/cmdline, not proc/cmdline.  (Technically this doesn't matter
in the daemon, since it's already done chdir ("/"), but the client does
need this and it's clearer to have them match.)
2010-09-07 15:18:52 +01:00
Colin Watson
41646ad9dd client: Open /proc/cmdline by absolute path
Open /proc/cmdline, not proc/cmdline.
2010-09-07 15:18:00 +01:00
Anisse Astier
5e8e039a00 [script] Add font selection argument to text to image capability
Enables scripts to choose the font they want with a sixth argument to
Image.Text API:
new_image = Image.Text("Hello", 1, 1, 1, 1, "DejaVu Bold,Italic 18");
2010-09-02 16:53:25 +01:00
Anisse Astier
984f4d9643 [label] Add font controls to label plugins 2010-09-02 16:48:20 +01:00
Anisse Astier
2fd764b65c [label] Factorize some font init code 2010-09-02 16:41:41 +01:00
Ray Strode
d00973529c [drm] plug driver_name leak
The previous commit accidentially added a small memory leak.
This commit mops that up.
2010-08-22 19:57:56 -04:00
Ray Strode
6e2df779ed [drm] Add preliminary support for libkms
This commit adds most of the pieces in place to use libkms, a
library by Jakob Bornecrantz, that abstracts the drm drivers
behind a common api.

Right now, we only fallback to libkms if the existing
backends won't work for the configured hardware.

In theory, this will give us pretty boot in virtual
machines, since libkms has support for the vmwgfx drm driver.

Aside from vmwgfx, libkms also supports intel and nouveau right
now.  When it supports radeon, too, I'll probably switch to
using libkms by default instead of as a fallback.  Eventually,
I'd like to drop all the non-libkms backend bits and the whole
driver vtable abstraction thing from plymouth completely.

This commit is just a copy-and-paste of one of the existing
drm backend files, with changes made to accomodate the libkms
api.  I haven't actually tested it, yet, so it will probably
need changes after I get a chance to do that.
2010-08-22 17:39:47 -04:00
Ray Strode
66980c331b [client] Update top line of help output
It said "Boot splash control client" before, but we do
boot and shutdown splashes.
2010-08-22 15:49:41 -04:00
Ray Strode
fcad4131f3 [main] Update top line of help output
It said "Boot splash control server" before, but we do
boot and shutdown splashes, and the word "control" doesn't
make sense.
2010-08-22 15:48:44 -04:00
Ray Strode
68f72b2b36 [two-step] Add prototype for exported function 2010-08-22 15:47:27 -04:00
Ray Strode
5125f624f6 [space-flares] mark functions static 2010-08-22 15:46:44 -04:00
Ray Strode
de73f0bfa4 [space-flares] Add prototype for exported function 2010-08-22 15:45:22 -04:00
Ray Strode
20562c56b8 Add prototype for exported function 2010-08-22 15:44:32 -04:00
Ray Strode
8e9086b6fd [fade-throbber] Add prototype for exported function 2010-08-22 15:43:52 -04:00
Ray Strode
11012f6d34 [throbgress] add prototype for exported function 2010-08-22 15:43:06 -04:00
Ray Strode
e242808bfb [label] add prototype for exported function 2010-08-22 15:42:12 -04:00
Ray Strode
ea135e702e [label] remove bogus whitespace 2010-08-22 15:41:13 -04:00
Ray Strode
4cd352a2ec [label] mark functions static 2010-08-22 15:40:55 -04:00
Ray Strode
38a71bb753 [throbber] drop unused variable 2010-08-22 15:39:38 -04:00