aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall7
1 files changed, 7 insertions, 0 deletions
diff --git a/install b/install
index 1e852a2..1ea78fc 100755
--- a/install
+++ b/install
@@ -17,6 +17,13 @@ mkdir -p ~/.cache/Watcher/
mkdir -p ~/.cache/Watcher/raw_data/
mkdir -p ~/.cache/Watcher/Analysis/
+# resolving confilict with previous version of watcher
+if [ -f "$HOME/.config/systemd/user/watcher.service" ]; then
+ systemctl --user disable --now watcher.service
+ rm -rf $HOME/.config/systemd/user/watcher.service
+elif [ -f "$HOME/.local/bin/watcher" ]; then
+ rm -rf $HOME/.local/bin/watcher
+
# 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