finally fixed environment variables handling

This commit is contained in:
cylgom 2017-10-11 21:55:53 +02:00
parent 603bd36ce6
commit 206901aeb5
2 changed files with 1 additions and 3 deletions

View File

@ -34,7 +34,6 @@
/* paths */
#define LY_PATH "/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/env"
#define LY_PATH_XSESSIONS "/usr/share/xsessions"
#define LY_PATH_RUNTIME_DIR "/run/user/1000"
/* console */
#define LY_CONSOLE_DEV "/dev/console"

View File

@ -463,7 +463,7 @@ int xinitrc)
pid_t child;
int status;
char cmd[LY_LIM_CMD];
char* argv[] = {pwd->pw_shell, "-c", cmd, NULL};
char* argv[] = {pwd->pw_shell, "-l", "-c", cmd, NULL};
extern char** environ;
/* updates cookie */
snprintf(cmd, sizeof(cmd), "exec xauth add %s . `%s`", display_name,
@ -525,7 +525,6 @@ enum deserv_t display_server)
setenv("XDG_SESSION_CLASS", "user", 0);
setenv("XDG_SEAT", "seat0", 0);
setenv("XDG_VTNR", tty_id, 0);
setenv("XDG_RUNTIME_DIR", LY_PATH_RUNTIME_DIR, 0);
setenv("DISPLAY", display_name, 1);
switch(display_server)