From 5200758200c3d455ae6287f9ccfc8bdb2449674a Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 14 May 2017 11:08:33 +0200 Subject: [PATCH] Osx updater now updates plist file to point to the correct executable binary. --- src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs b/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs index d38170699..82a8cf09e 100644 --- a/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs +++ b/src/NzbDrone.Update/UpdateEngine/InstallUpdateService.cs @@ -120,6 +120,13 @@ public void Start(string installationFolder, int processId) if (OsInfo.IsOsx) { _diskProvider.SetPermissions(Path.Combine(installationFolder, "Radarr"), "0755", null, null); + var plistPath = Path.Combine(installationFolder, "..", "Info.plist"); + var plistContents = File.ReadAllText(plistPath); + if (plistContents.Contains("Sonarr")) + { + plistContents.Replace("Sonarr", "Radarr"); + File.WriteAllText(plistPath, plistContents); + } } } catch (Exception e)