Make variables accessible to everyone.

This commit is contained in:
Syahrial Agni Prasetya 2021-03-06 11:54:20 +07:00
parent c1c27abedf
commit 8791765ce5
No known key found for this signature in database
GPG Key ID: 46F88749C8C79383

View File

@ -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