From e9a84cf72f3d77a9e86bc2db5bab24d44d551775 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Mon, 8 Jul 2024 13:37:49 +0000 Subject: [PATCH] install: xfce .profile use in .xsessionrc --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index c445e0b..a39431d 100755 --- a/install.sh +++ b/install.sh @@ -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