aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Waishnav <waishnavdeore@gmail.com>2022-03-22 11:20:40 +0530
committerLibravatar Waishnav <waishnavdeore@gmail.com>2022-03-22 11:20:40 +0530
commitf9fe90d4f4f3977b90a10fa5c1c63b1f165dfa07 (patch)
treeff07b53698df3af7a1777b08d4b21f22a124d3a4
parentf4104f2a2bbeed7471ceb3f2feaf8f08084b08cf (diff)
downloadshopno-os-log-sync-f9fe90d4f4f3977b90a10fa5c1c63b1f165dfa07.tar.gz
shopno-os-log-sync-f9fe90d4f4f3977b90a10fa5c1c63b1f165dfa07.zip
removing conflict with previous version of watcher about sourcing xprofile from xinitrc
-rwxr-xr-xinstall7
1 files 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