Use environment.d to load set env variables
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
6ed415c41a
commit
f14d73dbf4
4 changed files with 32 additions and 67 deletions
|
@ -25,6 +25,9 @@ dconf load / < "${XDG_CONFIG_HOME}/dconf/root.conf"
|
|||
# Activate correct crontab file
|
||||
crontab "${XDG_CONFIG_HOME}/cron/crontab"
|
||||
|
||||
# Load env variables
|
||||
export "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)"
|
||||
|
||||
# If we are on tty1 we start the x-server
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
startx "${XDG_CONFIG_HOME}/X11/xinitrc" -- -keeptty > "${XDG_LOG_HOME}/xorg.log" 2>&1 && exit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue