From: Grazvydas Ignotas Date: Sun, 5 Jul 2015 16:40:57 +0000 (+0300) Subject: slim: use different chvt approach X-Git-Tag: sz_172rc~10 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=commitdiff_plain;h=fa7110d9bcd1ef71637f61cf97bd72dc4d55fbc6;hp=30f7e94f4defcdb56700f3fb90813f3fce968d77 slim: use different chvt approach previous still didn't work and somehow resulted in "failed to execute login command" message --- diff --git a/recipes/slim/slim/chvt_on_exit_try2.patch b/recipes/slim/slim/chvt_on_exit_try2.patch new file mode 100644 index 0000000..c767e24 --- /dev/null +++ b/recipes/slim/slim/chvt_on_exit_try2.patch @@ -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; diff --git a/recipes/slim/slim_1.3.1.bb b/recipes/slim/slim_1.3.1.bb index 3e95d21..b85bfba 100644 --- a/recipes/slim/slim_1.3.1.bb +++ b/recipes/slim/slim_1.3.1.bb @@ -2,7 +2,7 @@ DESCRIPTION="Simple Login Manager" HOMEPAGE="http://slim.berlios.de" LICENSE = "GPL" -PR = "r9" +PR = "r10" 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://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 \