mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Set DISPLAY before invoking xinit (miura)
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
29ab953a87
commit
85fedac866
1 file changed
+1
@@ -529,6 +529,7 @@ int main()
|
|||||||
|
|
||||||
/* Prevents bash from running loadkeys */
|
/* Prevents bash from running loadkeys */
|
||||||
unsetenv("TERM");
|
unsetenv("TERM");
|
||||||
|
setenv("DISPLAY", ":0", 1);
|
||||||
|
|
||||||
while (access("/tmp/shutdown", F_OK) < 0) {
|
while (access("/tmp/shutdown", F_OK) < 0) {
|
||||||
_d("start X as %s\n", username);
|
_d("start X as %s\n", username);
|
||||||
|
|||||||
Reference in new issue
Block a user