mirror of
https://github.com/nix-community/home-manager
synced 2024-11-25 06:00:31 +00: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:
parent
09a0c0c029
commit
802b3cb2d4
2 changed files with 4 additions and 4 deletions
|
@ -121,9 +121,9 @@ in {
|
||||||
systemd.user.services.espanso = {
|
systemd.user.services.espanso = {
|
||||||
Unit = { Description = "Espanso: cross platform text expander in Rust"; };
|
Unit = { Description = "Espanso: cross platform text expander in Rust"; };
|
||||||
Service = {
|
Service = {
|
||||||
Type = "exec";
|
ExecStart = "${cfg.package}/bin/espanso launcher";
|
||||||
ExecStart = "${cfg.package}/bin/espanso daemon";
|
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
RestartSec = 3;
|
||||||
};
|
};
|
||||||
Install = { WantedBy = [ "default.target" ]; };
|
Install = { WantedBy = [ "default.target" ]; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@espanso@/bin/espanso daemon
|
ExecStart=@espanso@/bin/espanso launcher
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
Type=exec
|
RestartSec=3
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Espanso: cross platform text expander in Rust
|
Description=Espanso: cross platform text expander in Rust
|
||||||
|
|
Loading…
Reference in a new issue