only set DISPLAY env on startwm shell script

This commit is contained in:
Matheus
2024-05-22 18:11:06 -03:00
parent a65e7fa8cc
commit 94de8aa363
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
export DISPLAY=":0"
X &
while [ 1 ]
do
+1 -1
View File
@@ -25,7 +25,7 @@ int main(int argc, char *argv[]) {
setenv("HOME", pw->pw_dir, 1);
setenv("PATH", "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin", 1);
setenv("TERM", "linux", 1);
setenv("DISPLAY", ":0", 1);
//setenv("DISPLAY", ":0", 1);
// run rc to initialize environment (mount filesystems, etc)
printf("init: running /etc/rc\n");