Make variables accessible to everyone.
This commit is contained in:
parent
c1c27abedf
commit
8791765ce5
@ -16,6 +16,7 @@ asroot(){
|
|||||||
|
|
||||||
storeenv() {
|
storeenv() {
|
||||||
echo "# This will be sourced when entering Archbox" > /tmp/archbox_env
|
echo "# This will be sourced when entering Archbox" > /tmp/archbox_env
|
||||||
|
chmod 777 /tmp/archbox_env >/dev/null 2>&1
|
||||||
[[ ! -z $WAYLAND_DISPLAY ]] && echo "WAYLAND_DISPLAY=$WAYLAND_DISPLAY" >> /tmp/archbox_env
|
[[ ! -z $WAYLAND_DISPLAY ]] && echo "WAYLAND_DISPLAY=$WAYLAND_DISPLAY" >> /tmp/archbox_env
|
||||||
if [[ ! -z $DISPLAY ]]; then
|
if [[ ! -z $DISPLAY ]]; then
|
||||||
hash xhost >/dev/null 2>&1 && xhost +local: > /dev/null
|
hash xhost >/dev/null 2>&1 && xhost +local: > /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user