slim: add a hack to load pandora's xmodmap
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 5 Feb 2013 01:17:05 +0000 (03:17 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 5 Feb 2013 01:17:33 +0000 (03:17 +0200)
recipes/slim/slim/pandora_xmodmap_hack.patch [new file with mode: 0644]
recipes/slim/slim_1.3.1.bb

diff --git a/recipes/slim/slim/pandora_xmodmap_hack.patch b/recipes/slim/slim/pandora_xmodmap_hack.patch
new file mode 100644 (file)
index 0000000..dfab693
--- /dev/null
@@ -0,0 +1,18 @@
+diff -urp slim-1.3.1/app.cpp slim-1.3.1_/app.cpp
+--- slim-1.3.1/app.cpp 2013-02-05 01:32:52.583612049 +0200
++++ slim-1.3.1_/app.cpp        2013-02-05 03:11:55.799833237 +0200
+@@ -336,6 +336,14 @@ void App::Run() {
+             Login();
+         }
+     }
++    if (firstlogin || !autologin) {
++        // load keymap for pandora, our hackjob leader!
++        char buf[256];
++        const char *authfile = cfg->getOption("authfile").c_str();
++        snprintf(buf, sizeof(buf), "DISPLAY=:0 XAUTHORITY="
++            "%s /usr/bin/xmodmap /etc/skel/.pndXmodmap", authfile);
++        system(buf);
++    }
+     // Start looping
+     int panelclosed = 1;
+     Panel::ActionType Action;
index 918bdc9..d028744 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION="Simple Login Manager"
 HOMEPAGE="http://slim.berlios.de"
 LICENSE = "GPL"
 
 HOMEPAGE="http://slim.berlios.de"
 LICENSE = "GPL"
 
-PR = "r5"
+PR = "r6"
 
 inherit update-rc.d
 
 
 inherit update-rc.d
 
@@ -20,6 +20,7 @@ SRC_URI=" \
   file://xauth_secret_support.patch;patch=1 \
   file://delay.patch;patch=1 \  
   file://pam-unix2.patch;patch=1 \    
   file://xauth_secret_support.patch;patch=1 \
   file://delay.patch;patch=1 \  
   file://pam-unix2.patch;patch=1 \    
+  file://pandora_xmodmap_hack.patch;patch=1 \
   file://rc.slim \
   file://slim-dynwm \
   file://update_slim_wmlist \
   file://rc.slim \
   file://slim-dynwm \
   file://update_slim_wmlist \