From 9d3862d8f4c70c803b65ac5b2d71579ac9cf8a78 Mon Sep 17 00:00:00 2001 From: Harshad Gavali Date: Mon, 30 Aug 2021 23:03:44 +0530 Subject: [PATCH] README: add instructions to restart system --- README.md | 9 ++++++++- install.sh | 6 ++++-- uninstall.sh | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5095623..6f6f02e 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,9 @@ sudo usermod -aG input $USER ``` # Without sudo/root sh install.sh + +# Restart system for changes to take an effect +# After restart service will be automatically started by extension ``` ### Build from source @@ -42,10 +45,14 @@ make build && make install ``` ### Troubleshooting -Run following command to check if service is running properly (It should be running on X11). +- First make sure you've restarted your system after installing. + +- Run following command to check if service is running properly (It should be running on X11). ``` systemctl --user status gesture_improvements_gesture_daemon.service ``` + +- Open issue on github, with output of the above command ### Uninstallation ``` # Without sudo/root diff --git a/install.sh b/install.sh index a9e12d8..c0861cb 100644 --- a/install.sh +++ b/install.sh @@ -5,9 +5,11 @@ sed -i "s#@HOME#${HOME}#g" gesture_improvements_gesture_daemon.service mkdir -vp ~/.config/systemd/user ~/.local/bin cp -vf gesture_improvements_gesture_daemon.service ~/.config/systemd/user cp -vf target/release/gesture_improvements_gesture_daemon ~/.local/bin +chmod +x ~/.local/bin/gesture_improvements_gesture_daemon echo "Installed ..." echo "" -echo "Make sure to add user to 'input group'." +echo "Make sure to add user to 'input' group." echo "Run 'sudo usermod -aG input \$USER' to add user to 'input' group." -echo "Restart after adding user to the group." +echo "Restart system for changes to take an effect." +echo "After restart service will be automatically started by extension." diff --git a/uninstall.sh b/uninstall.sh index b5e4101..d560ce6 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,5 +1,6 @@ #!/bin/sh echo "Uninstalling ..." +systemctl --user stop gesture_improvements_gesture_daemon.service rm -v ~/.config/systemd/user/gesture_improvements_gesture_daemon.service rm -v ~/.local/bin/gesture_improvements_gesture_daemon echo "Uninstalled ..."