Skip to content

Commit

Permalink
fix agent path
Browse files Browse the repository at this point in the history
  • Loading branch information
wiegell committed Nov 24, 2022
1 parent ead4fdf commit d686738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AstroWall/ApplicationLayer/Helpers/SystemEvents.Macos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void RegisterWallpaperWakeHandler(Action<NSNotification> ac)
public static void SetAsLaunchAgent()
{
string ap = agentPath();
string agentXmlContent = @"<?xml version=""1.0"" encoding=""UTF-8""?>
string agentXmlContent = $@"<?xml version=""1.0"" encoding=""UTF-8""?>
<!DOCTYPE plist PUBLIC ""-//Apple//DTD PLIST 1.0//EN"" ""http://www.apple.com/DTDs/PropertyList-1.0.dtd"">
<plist version=""1.0"">
<dict>
Expand All @@ -72,7 +72,7 @@ public static void SetAsLaunchAgent()
<key>LimitLoadToSessionType</key>
<string>Aqua</string>
<key>Program</key>
<string>/Applications/Astro Wall.app/Contents/MacOS/Astro Wall</string>
<string>{General.GetInstallPath()}/Contents/MacOS/Astro Wall</string>
<key>RunAtLoad</key>
<true/>
</dict>
Expand Down

0 comments on commit d686738

Please sign in to comment.