mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
Invoke xinit directly instead of startx
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
c7c388e567
commit
52feb6f51c
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -578,12 +578,12 @@ int main()
|
||||
#endif
|
||||
if (debug) {
|
||||
snprintf(line, LINE_SIZE,
|
||||
"su -c startx -l %s\n", username);
|
||||
"su -c xinit -l %s\n", username);
|
||||
system(line);
|
||||
system("/bin/sh");
|
||||
} else {
|
||||
snprintf(line, LINE_SIZE,
|
||||
"su -c startx -l %s\n &> /dev/null",
|
||||
"su -c xinit -l %s\n &> /dev/null",
|
||||
username);
|
||||
system(line);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user