From d68673820996015e4aab4a1aa977e5942b3e0538 Mon Sep 17 00:00:00 2001 From: BWiegell Date: Thu, 24 Nov 2022 22:52:06 +0100 Subject: [PATCH] fix agent path --- AstroWall/ApplicationLayer/Helpers/SystemEvents.Macos.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AstroWall/ApplicationLayer/Helpers/SystemEvents.Macos.cs b/AstroWall/ApplicationLayer/Helpers/SystemEvents.Macos.cs index 9a3859f..febd412 100644 --- a/AstroWall/ApplicationLayer/Helpers/SystemEvents.Macos.cs +++ b/AstroWall/ApplicationLayer/Helpers/SystemEvents.Macos.cs @@ -63,7 +63,7 @@ public void RegisterWallpaperWakeHandler(Action ac) public static void SetAsLaunchAgent() { string ap = agentPath(); - string agentXmlContent = @" + string agentXmlContent = $@" @@ -72,7 +72,7 @@ public static void SetAsLaunchAgent() LimitLoadToSessionType Aqua Program - /Applications/Astro Wall.app/Contents/MacOS/Astro Wall + {General.GetInstallPath()}/Contents/MacOS/Astro Wall RunAtLoad