mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-02 00:56:39 +02:00
Merge pull request #66 from rbreaves/hotfix
- Fixes Kinto startup delay on cold boots. Closes #65
This commit is contained in:
@@ -8,6 +8,7 @@ mkdir -p ~/.config/systemd/user
|
|||||||
mkdir -p ~/.config/autostart
|
mkdir -p ~/.config/autostart
|
||||||
cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service
|
cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service
|
||||||
cp ./system-config/kinto.desktop ~/.config/autostart/kinto.desktop
|
cp ./system-config/kinto.desktop ~/.config/autostart/kinto.desktop
|
||||||
|
cp ./system-config/keyswap.timer ~/.config/systemd/user/keyswap.timer
|
||||||
cp ./kintox11/binary/kintox11 ~/.config/kinto/kintox11
|
cp ./kintox11/binary/kintox11 ~/.config/kinto/kintox11
|
||||||
cp ./system-config/xactive.sh ~/.config/kinto/xactive.sh
|
cp ./system-config/xactive.sh ~/.config/kinto/xactive.sh
|
||||||
cp ./system-config/caret_status.sh ~/.config/kinto/caret_status.sh
|
cp ./system-config/caret_status.sh ~/.config/kinto/caret_status.sh
|
||||||
@@ -20,5 +21,6 @@ if [ "${#DISPLAY}" -gt 2 ]
|
|||||||
sed -i "s/#Environment/Environment/g" ~/.config/systemd/user/keyswap.service
|
sed -i "s/#Environment/Environment/g" ~/.config/systemd/user/keyswap.service
|
||||||
fi
|
fi
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
systemctl --user enable keyswap
|
sed -i "s/ExecStart=/ExecStart=${swapcmd}/g" ~/.config/systemd/user/keyswap.service
|
||||||
systemctl --user start keyswap
|
systemctl --user enable keyswap.timer
|
||||||
|
systemctl --user start keyswap.timer
|
||||||
|
11
system-config/keyswap.timer
Normal file
11
system-config/keyswap.timer
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# keyswap.timer
|
||||||
|
[Unit]
|
||||||
|
Description=Runs the keyswap.service 5 seconds after boot up
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
#OnBootSec=5s
|
||||||
|
OnActiveSec=5s
|
||||||
|
Unit=keyswap.service
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
@@ -2,7 +2,7 @@
|
|||||||
Name=Kinto
|
Name=Kinto
|
||||||
GenericName=Kinto
|
GenericName=Kinto
|
||||||
Comment=Make Linux Type Like it's a Mac
|
Comment=Make Linux Type Like it's a Mac
|
||||||
Exec=/usr/bin/systemctl --user start keyswap
|
Exec=/bin/sleep 5 /usr/bin/systemctl --user start keyswap
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
X-GNOME-Autostart-enabled=true
|
X-GNOME-Autostart-enabled=true
|
Reference in New Issue
Block a user