From f9fe90d4f4f3977b90a10fa5c1c63b1f165dfa07 Mon Sep 17 00:00:00 2001 From: Waishnav Date: Tue, 22 Mar 2022 11:20:40 +0530 Subject: removing conflict with previous version of watcher about sourcing xprofile from xinitrc --- install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install b/install index 53630ba..539e5f1 100755 --- a/install +++ b/install @@ -13,7 +13,7 @@ echo "[✔] Copying Watcher to /usr/share/" sudo cp -r ./src/bin/watcher /usr/local/bin/ echo "[✔] Copying watcher executable to /usr/local/bin/" sudo chmod +x /usr/local/bin/watcher -echo "[✔] Making it executable by giving giving it permission" +echo "[✔] Making it executable by giving it permission" # making directory for log-files (where all you daily logs are stored) mkdir -p ~/.cache/Watcher/ @@ -22,7 +22,7 @@ mkdir -p ~/.cache/Watcher/raw_data/ mkdir -p ~/.cache/Watcher/Analysis/ # resolving confilict with previous version of watcher -echo "[✔] Checking whether you had installed previous version so removing conflicts if yes" +echo "[✔] Checking whether you had installed previous version of Watcher so removing those conflicts if yes" if [ -f "$HOME/.config/systemd/user/watcher.service" ]; then systemctl --user disable --now watcher.service rm -rf $HOME/.config/systemd/user/watcher.service @@ -30,6 +30,9 @@ elif [ -f "$HOME/.local/bin/watcher" ]; then rm -rf $HOME/.local/bin/watcher fi +# deleting folowing lines "[ -f /etc/xprofile ] && . /etc/xprofile/" and "[ -f ~/.xprofile ] && . ~/.xprofile" +sed -i '/xprofile/d' ~/.xinitrc + # checking wherther is ~/.xprofile is sourced in ~/.xintrc or not count1=$(grep -c "xprofile" $HOME/.xinitrc) # checking whether user have used watcher before as well as xprofile filed setup or not -- cgit v1.2.3