slim: use different chvt approach
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 5 Jul 2015 16:40:57 +0000 (19:40 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 5 Jul 2015 20:22:30 +0000 (23:22 +0300)
previous still didn't work and somehow resulted in "failed to execute
login command" message

recipes/slim/slim/chvt_on_exit_try2.patch [new file with mode: 0644]
recipes/slim/slim_1.3.1.bb

diff --git a/recipes/slim/slim/chvt_on_exit_try2.patch b/recipes/slim/slim/chvt_on_exit_try2.patch
new file mode 100644 (file)
index 0000000..c767e24
--- /dev/null
@@ -0,0 +1,17 @@
+diff -ur slim-1.3.1_/main.cpp slim-1.3.1/main.cpp
+--- slim-1.3.1_/main.cpp       2008-09-26 03:54:15.000000000 +0300
++++ slim-1.3.1/main.cpp        2015-07-05 18:56:57.865387688 +0300
+@@ -14,7 +14,13 @@
+ App* LoginApp = 0;
++static void do_chvt(void)
++{
++    system("/usr/bin/chvt 1");
++}
++
+ int main(int argc, char** argv) {
++    atexit(do_chvt);
+     LoginApp = new App(argc, argv);
+     LoginApp->Run();
+     return 0;
index 3e95d21..b85bfba 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 = "r9"
+PR = "r10"
 
 inherit update-rc.d
 
 
 inherit update-rc.d
 
@@ -21,7 +21,8 @@ SRC_URI=" \
   file://delay.patch;patch=1 \  
   file://pam-unix2.patch;patch=1 \    
   file://pandora_xmodmap_hack.patch;patch=1 \
   file://delay.patch;patch=1 \  
   file://pam-unix2.patch;patch=1 \    
   file://pandora_xmodmap_hack.patch;patch=1 \
-  file://chvt_on_exit.patch;patch=1 \
+#  file://chvt_on_exit.patch;patch=1 \
+  file://chvt_on_exit_try2.patch;patch=1 \
   file://rc.slim \
   file://slim-dynwm \
   file://update_slim_wmlist \
   file://rc.slim \
   file://slim-dynwm \
   file://update_slim_wmlist \