Skip to content

Commit adbdbb4

Browse files
committed
Update session_autostart.py
1 parent 213018e commit adbdbb4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/utils/session_autostart.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ def _macos_apply_autostart(enabled: bool) -> bool:
179179
except OSError as e:
180180
_LOG.warning("Could not write LaunchAgent plist %s: %s", path, e)
181181
return False
182-
_macos_launchctl("load", path)
182+
# Do NOT call launchctl bootstrap here — RunAtLoad=true would launch a second
183+
# instance immediately while the app is already running. launchd picks up the
184+
# plist automatically at next login.
183185
return True
184186

185187

0 commit comments

Comments
 (0)