plymouththemedir=$datadir/plymouth/themes
AS_AC_EXPAND(PLYMOUTH_THEME_PATH, $plymouththemedir)
+plymouthruntimethemedir=$plymouthruntimedir/themes
+AS_AC_EXPAND(PLYMOUTH_RUNTIME_THEME_PATH, $plymouthruntimethemedir)
+
plymouthplugindir=$libdir/plymouth/
AS_AC_EXPAND(PLYMOUTH_PLUGIN_PATH, $plymouthplugindir)
-DPLYMOUTH_THEME_PATH=\"$(PLYMOUTH_THEME_PATH)/\" \
-DPLYMOUTH_POLICY_DIR=\"$(PLYMOUTH_POLICY_DIR)/\" \
-DPLYMOUTH_RUNTIME_DIR=\"$(PLYMOUTH_RUNTIME_DIR)\" \
- -DPLYMOUTH_CONF_DIR=\"$(PLYMOUTH_CONF_DIR)/\"
+ -DPLYMOUTH_CONF_DIR=\"$(PLYMOUTH_CONF_DIR)/\" \
+ -DPLYMOUTH_RUNTIME_THEME_PATH=\"$(PLYMOUTH_RUNTIME_THEME_PATH)/\"
plymouthd_LDADD = $(PLYMOUTH_LIBS) libply/libply.la libply-splash-core/libply-splash-core.la
plymouthd_SOURCES = \
ply-boot-protocol.h \
goto out;
asprintf (theme_path,
- PLYMOUTH_THEME_PATH "%s/%s.plymouth",
+ PLYMOUTH_RUNTIME_THEME_PATH "%s/%s.plymouth",
splash_string, splash_string);
+ ply_trace ("Checking if %s exists", *theme_path);
+ if (!ply_file_exists (*theme_path)) {
+ ply_trace ("%s not found, fallbacking to " PLYMOUTH_THEME_PATH,
+ *theme_path);
+ asprintf (theme_path,
+ PLYMOUTH_THEME_PATH "%s/%s.plymouth",
+ splash_string, splash_string);
+ }
if (isnan (state->splash_delay)) {
const char *delay_string;
ply_trace ("Splash is configured to be '%*.*s'", length, length, splash_string);
asprintf (&state->override_splash_path,
- PLYMOUTH_THEME_PATH "%*.*s/%*.*s.plymouth",
+ PLYMOUTH_RUNTIME_THEME_PATH "%*.*s/%*.*s.plymouth",
length, length, splash_string, length, length, splash_string);
+ ply_trace ("Checking if %s exists", state->override_splash_path);
+ if (!ply_file_exists (state->override_splash_path)) {
+ ply_trace ("%s not found, fallbacking to " PLYMOUTH_THEME_PATH,
+ state->override_splash_path);
+ asprintf (&state->override_splash_path,
+ PLYMOUTH_THEME_PATH "%*.*s/%*.*s.plymouth",
+ length, length, splash_string, length, length, splash_string);
+ }
}
if (isnan (state->splash_delay)) {