1
0
Fork 0
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:
Liassica 2024-05-30 02:05:10 -05:00 committed by GitHub
parent 60b85414b4
commit 29c69d9a46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";
}; };
}; };