Skip to content

Commit

Permalink
Merge pull request #45 from xalt7x/main
Browse files Browse the repository at this point in the history
Portable systemd service file
  • Loading branch information
harshadgavali committed Mar 15, 2023
2 parents 3c5a56a + 0e69fb4 commit e231d3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions gesture_improvements_gesture_daemon.service
Expand Up @@ -5,6 +5,7 @@ StartLimitInterval=0

[Service]
Type=simple
ExecStart=@HOME/.local/bin/gesture_improvements_gesture_daemon
ExecStart=%h/.local/bin/gesture_improvements_gesture_daemon
Restart=always
RestartSec=1s
RestartSec=1s

4 changes: 2 additions & 2 deletions install.sh 100644 → 100755
@@ -1,7 +1,6 @@
#!/bin/sh

echo "Installing ..."
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
Expand All @@ -21,4 +20,5 @@ else
echo "Restart system for changes to take an effect."
fi

echo "Service will be automatically started by extension."
echo "Service will be automatically started by extension."

0 comments on commit e231d3b

Please sign in to comment.