f42647
From 5337f1094ecedf50bcfb9a000ac6b99bd95ffea2 Mon Sep 17 00:00:00 2001
2fc437
From: Ray Strode <rstrode@redhat.com>
2fc437
Date: Fri, 14 Mar 2014 11:04:49 -0400
f42647
Subject: [PATCH 5/8] systemd: clear terminal after starting
2fc437
2fc437
This helps with flicker when the X server shuts down.
2fc437
---
2fc437
 data/gdm.service.in | 1 +
2fc437
 1 file changed, 1 insertion(+)
2fc437
2fc437
diff --git a/data/gdm.service.in b/data/gdm.service.in
f42647
index 72201c1f..b58f4c61 100644
2fc437
--- a/data/gdm.service.in
2fc437
+++ b/data/gdm.service.in
f42647
@@ -1,34 +1,35 @@
2fc437
 [Unit]
2fc437
 Description=GNOME Display Manager
2fc437
 
2fc437
 # replaces the getty
2fc437
 Conflicts=getty@tty@GDM_INITIAL_VT@.service
2fc437
 After=getty@tty@GDM_INITIAL_VT@.service
2fc437
 
2fc437
 # replaces plymouth-quit since it quits plymouth on its own
2fc437
 Conflicts=@PLYMOUTH_QUIT_SERVICE@
2fc437
 After=@PLYMOUTH_QUIT_SERVICE@
2fc437
 
2fc437
 # Needs all the dependencies of the services it's replacing
2fc437
 # pulled from getty@.service and @PLYMOUTH_QUIT_SERVICE@
2fc437
 # (except for plymouth-quit-wait.service since it waits until
2fc437
 # plymouth is quit, which we do)
2fc437
 After=rc-local.service plymouth-start.service systemd-user-sessions.service
2fc437
 
2fc437
 # GDM takes responsibility for stopping plymouth, so if it fails
2fc437
 # for any reason, make sure plymouth still stops
2fc437
 OnFailure=plymouth-quit.service
2fc437
 
2fc437
 [Service]
2fc437
 ExecStart=@sbindir@/gdm
2fc437
+ExecStartPost=-/bin/bash -c "TERM=linux /usr/bin/clear > /dev/tty1"
2fc437
 KillMode=mixed
2fc437
 Restart=always
2fc437
 IgnoreSIGPIPE=no
2fc437
 BusName=org.gnome.DisplayManager
2fc437
 StandardOutput=syslog
2fc437
 StandardError=inherit
2fc437
 EnvironmentFile=-@LANG_CONFIG_FILE@
f42647
 ExecReload=/bin/kill -SIGHUP $MAINPID
2fc437
 
2fc437
 [Install]
2fc437
 Alias=display-manager.service
2fc437
-- 
f42647
2.14.2
2fc437