mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-11-16 15:57:38 +00:00
install: xfce .profile use in .xsessionrc
This commit is contained in:
parent
1531ba9034
commit
e9a84cf72f
1 changed files with 7 additions and 0 deletions
|
@ -61,6 +61,7 @@ detect_os_arch() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
detect_os_arch
|
detect_os_arch
|
||||||
|
|
||||||
## Update & Install dependencies
|
## 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
|
rm -r $HOME/.local/bin/bsx* $HOME/.local/bin/basicswap-bash
|
||||||
fi
|
fi
|
||||||
mv -f -t $HOME/.local/bin/ basicswap-bash bsx*
|
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
|
## Make venv and set variables for install
|
||||||
export SWAP_DATADIR=$HOME/coinswaps
|
export SWAP_DATADIR=$HOME/coinswaps
|
||||||
|
|
Loading…
Reference in a new issue