hide xfce err

This commit is contained in:
nahuhh 2024-09-16 19:17:57 +00:00
parent acc3702c50
commit 5a3e24441d

View file

@ -169,16 +169,22 @@ if ! [[ $trasherdk ]]; then
mkdir -p $HOME/.local/bin
fi
# Move scripts to .local/bin
if [ -d $HOME/.local/bin/bsx ]; then
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)
if [[ $xfce_chek ]]; then
if [[ -f $HOME/.xsessionrc ]]; then
xsessionrc_check=$(cat ~/.xsessionrc | grep '. ~/.profile')
if [[ $xfce_chek ]] && [[ -z $xsessionrc_check ]]; then
if [[ -z $xsessionrc_check ]]; then
echo '. ~/.profile' | tee -a ~/.xsessionrc
fi
else
echo '. ~/.profile' | tee -a ~/.xsessionrc
fi
fi
## Make venv and set variables for install
export SWAP_DATADIR=$HOME/coinswaps