also source ~/.profile when looking for envvars

I have the impression that setting environment variables in the custom
xinit script doesn't always work properly (no idea why). Putting them in
~/.profile seems to be more robust. Sourcing it is a good idea anyhow,
hence this patch:
master
Maarten van Gompel 4 years ago committed by Miles Alan
parent 41f2adf18a
commit 7830d95209
  1. 1
      scripts/core/sxmo_xinit.sh

@ -3,6 +3,7 @@
envvars() { envvars() {
# shellcheck disable=SC1091 # shellcheck disable=SC1091
. /etc/profile . /etc/profile
. ~/.profile
command -v "$TERM" || export TERM=st command -v "$TERM" || export TERM=st
command -v "$BROWSER" || export BROWSER=surf command -v "$BROWSER" || export BROWSER=surf
command -v "$EDITOR" || export EDITOR=vis command -v "$EDITOR" || export EDITOR=vis

Loading…
Cancel
Save