mirror of
https://github.com/nix-community/home-manager
synced 2024-11-19 01:29:46 +01:00
kdeconnect: fix service with 24.05 package version
The 24.05 update for KDE Connect moved the kdeconnectd binary from `/libexec` to `/bin`, so this fix will check the version of the package used and set the path accordingly.
This commit is contained in:
parent
60b85414b4
commit
29c69d9a46
1 changed files with 6 additions and 1 deletions
|
@ -48,7 +48,12 @@ in {
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
Environment = "PATH=${config.home.profileDirectory}/bin";
|
Environment = "PATH=${config.home.profileDirectory}/bin";
|
||||||
ExecStart = "${cfg.package}/libexec/kdeconnectd";
|
ExecStart =
|
||||||
|
if strings.versionAtLeast (versions.majorMinor cfg.package.version)
|
||||||
|
"24.05" then
|
||||||
|
"${cfg.package}/bin/kdeconnectd"
|
||||||
|
else
|
||||||
|
"${cfg.package}/libexec/kdeconnectd";
|
||||||
Restart = "on-abort";
|
Restart = "on-abort";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue