mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +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 = {
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue