This way when there is an error the user can see it
at the login screen.
AM_CONDITIONAL(ADD_BOOT_ENTRY, [test "$with_boot_entry" = yes])
+AC_ARG_WITH(gdm-autostart-file, AS_HELP_STRING([--with-gdm-autostart-file],[start log viewer from gdm on boot errors]),with_gdm_autostart_file=$withval,with_gdm_autostart_file=yes)
+
+AM_CONDITIONAL(START_FROM_GDM, [test "$with_gdm_autostart_file" = yes])
+
AC_ARG_WITH(logo, AC_HELP_STRING([--with-logo], [logo used by boot splash plugins]),logofile=${withval},logofile=$datadir/plymouth/bizcom.png)
AC_SUBST(logofile)
SUBDIRS = .
+EXTRA_DIST=
INCLUDES = -I$(top_srcdir) \
-I$(srcdir)
plymouth_log_viewer_LDADD = $(GTK_LIBS)
plymouth_log_viewer_SOURCES = $(srcdir)/plymouth-log-viewer.c
+if START_FROM_GDM
+gdmautostartdir = $(datadir)/gdm/autostart/LoginWindow
+gdmautostart_DATA = plymouth-log-viewer.desktop
+EXTRA_DIST += plymouth-log-viewer.desktop
+endif
+
MAINTAINERCLEANFILES = Makefile.in
--- /dev/null
+[Desktop Entry]
+Encoding=UTF-8
+Name=Boot messages
+Comment=Boot messages
+Exec=plymouth-log-viewer --icon
+Terminal=false
+Type=Application
+Categories=
+OnlyShowIn=GNOME;XFCE;