mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
main: don't unset HOME/TERM when run in session mode
This commit is contained in:
parent
d9be8f8f32
commit
39439087bf
2
TODO
2
TODO
|
@ -82,6 +82,8 @@
|
|||
|
||||
* make sure swap.target doesn't pull in partitions multiple times
|
||||
|
||||
* make description of .swap files nicer: resolve /dev/by-uuid/ symlink
|
||||
|
||||
External:
|
||||
|
||||
* patch kernel to add /proc/swaps change notifications
|
||||
|
|
|
@ -975,8 +975,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
/* Unset some environment variables passed in from the kernel
|
||||
* that don't really make sense for us. */
|
||||
unsetenv("HOME");
|
||||
unsetenv("TERM");
|
||||
if (arg_running_as == MANAGER_SYSTEM) {
|
||||
unsetenv("HOME");
|
||||
unsetenv("TERM");
|
||||
}
|
||||
|
||||
/* Move out of the way, so that we won't block unmounts */
|
||||
assert_se(chdir("/") == 0);
|
||||
|
|
Loading…
Reference in a new issue