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
|
@ -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