kmscon: use /bin/login -p as default login program

We must pass "-p" to make "login" preserve the environment. We make sure
the environment is correctly reset before calling it so it is safe.
Furthermore, this allows us to pass additional environment variables to
the child without having /bin/login reset it.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann committed 2012-12-12 21:24:51 +01:00
1 parent 24fe3f1911
commit 5a33f412d9
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -224,7 +224,7 @@
after all options have been parsed is used as argument to this
option. Note that nothing after two dashes <option>--</option>
is parsed as regular option by kmscon.
(default: /bin/login)</para>
(default: /bin/login -p)</para>
<para>This example starts '/bin/bash -i' on each new terminal session:
./kmscon --login --debug --no-switchvt -- /bin/bash -i</para>