[systemd-commits] src/localed.c

Lennart Poettering lennart at kemper.freedesktop.org
Tue Oct 11 11:20:18 PDT 2011


 src/localed.c |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit c70ac211b486c70271e265d142f3b73e323faf6e
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Oct 11 20:20:01 2011 +0200

    localed: make sure s-s-k doesn't create any X11 config files anymore

diff --git a/src/localed.c b/src/localed.c
index e627c3a..c6b48de 100644
--- a/src/localed.c
+++ b/src/localed.c
@@ -574,6 +574,10 @@ static int write_data_x11(void) {
 
 #ifdef TARGET_FEDORA
                 unlink("/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
+
+                /* Symlink this to /dev/null, so that s-s-k (if it is
+                 * still running) doesn't recreate this. */
+                symlink("/dev/null", "/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
 #endif
 
                 if (unlink("/etc/X11/xorg.conf.d/00-keyboard.conf") < 0)
@@ -619,6 +623,10 @@ static int write_data_x11(void) {
 
 #ifdef TARGET_FEDORA
                 unlink("/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
+
+                /* Symlink this to /dev/null, so that s-s-k (if it is
+                 * still running) doesn't recreate this. */
+                symlink("/dev/null", "/etc/X11/xorg.conf.d/00-system-setup-keyboard.conf");
 #endif
 
                 r = 0;



More information about the systemd-commits mailing list