install: xfce .profile use in .xsessionrc

This commit is contained in:
nahuhh 2024-07-08 13:37:49 +00:00
parent 1531ba9034
commit e9a84cf72f

View file

@ -61,6 +61,7 @@ detect_os_arch() {
fi
}
detect_os_arch
## Update & Install dependencies
@ -172,6 +173,12 @@ if [ -d $HOME/.local/bin/bsx ]; then
rm -r $HOME/.local/bin/bsx* $HOME/.local/bin/basicswap-bash
fi
mv -f -t $HOME/.local/bin/ basicswap-bash bsx*
# Enable .profile detection on XFCE
xfce_check=$(echo $XDG_CURRENT_DESKTOP | grep XFCE)
xsessionrc_check=$(cat ~/.xsessionrc | grep '. ~/.profile')
if [[ $xfce_chek ]] && [[ -z $xsessionrc_check ]]; then
echo '. ~/.profile' | tee -a ~/.xsessionrc
fi
## Make venv and set variables for install
export SWAP_DATADIR=$HOME/coinswaps