slim: try again
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 9 Jul 2015 23:21:43 +0000 (02:21 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Thu, 9 Jul 2015 23:34:53 +0000 (02:34 +0300)
this thing is a disaster

recipes/slim/slim/chvt_on_exit_try2.patch
recipes/slim/slim_1.3.1.bb

index 8c846f3..2f2e196 100644 (file)
@@ -1,13 +1,13 @@
-diff -ur slim-1.3.1_/main.cpp slim-1.3.1/main.cpp
+diff -u 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       2008-09-26 03:54:15.000000000 +0300
-+++ slim-1.3.1/main.cpp        2015-07-06 02:40:17.534545611 +0300
++++ slim-1.3.1/main.cpp        2015-07-10 02:29:38.182646783 +0300
 @@ -14,7 +14,13 @@
  
  App* LoginApp = 0;
  
 +static void do_chvt(void)
 +{
 @@ -14,7 +14,13 @@
  
  App* LoginApp = 0;
  
 +static void do_chvt(void)
 +{
-+    system("if [ \"`/sbin/runlevel | awk '{print $2}'`\" = \"5\" ]; then /usr/bin/chvt 1; fi");
++    system("if [ \"`/sbin/runlevel | awk '{print $2}'`\" = \"5\" -a \"`/bin/pidof X`\" = \"\" ]; then /usr/bin/chvt 1; fi");
 +}
 +
  int main(int argc, char** argv) {
 +}
 +
  int main(int argc, char** argv) {
index b85bfba..3abf93b 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 = "r10"
+PR = "r11"
 
 inherit update-rc.d
 
 
 inherit update-rc.d