We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0589c7 commit 201cca1Copy full SHA for 201cca1
libinput-gestures-setup
@@ -15,7 +15,7 @@ DOCDIR="/usr/share/doc/$NAME"
15
CNFDIR="/etc"
16
HCFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
17
AUTDIR="$HCFDIR/autostart"
18
-SVCFLG="$HOME/.$NAME-service"
+SVCFLG="$HCFDIR/$NAME-is-service"
19
20
usage() {
21
echo "Usage:"
@@ -120,7 +120,8 @@ user_action() {
120
echo "Systemd not available, can not run as service."
121
exit 1
122
fi
123
- touch $SVCFLG
+ mkdir -p "$(dirname $SVCFLG)"
124
+ echo "# This file created by \"$NAME-setup $cmd\" command." >$SVCFLG
125
rm -fv $AUTDIR/$NAME.desktop
126
elif [[ $cmd == desktop ]]; then
127
rm -f $SVCFLG
0 commit comments