1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-10-22 04:57:26 +02:00

espanso: use launcher command on Linux

The source uses `launcher` instead of `daemon`. Additionally we remove
`Type` and add `RestartSec` as defined in the source:

b421bcf73f/espanso/src/res/linux/systemd.service (L5-L7C1)
This commit is contained in:
Muhammad Talal Anwar 2024-10-19 09:01:11 +02:00 committed by GitHub
parent 09a0c0c029
commit 802b3cb2d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -121,9 +121,9 @@ in {
systemd.user.services.espanso = {
Unit = { Description = "Espanso: cross platform text expander in Rust"; };
Service = {
Type = "exec";
ExecStart = "${cfg.package}/bin/espanso daemon";
ExecStart = "${cfg.package}/bin/espanso launcher";
Restart = "on-failure";
RestartSec = 3;
};
Install = { WantedBy = [ "default.target" ]; };
};

View file

@ -2,9 +2,9 @@
WantedBy=default.target
[Service]
ExecStart=@espanso@/bin/espanso daemon
ExecStart=@espanso@/bin/espanso launcher
Restart=on-failure
Type=exec
RestartSec=3
[Unit]
Description=Espanso: cross platform text expander in Rust