「開機自動啟動」開關立刻生效,不用等到下次重開機
以前你在選單裡點了「開機自動啟動」的開關,系統只會默默記在筆記本裡,你得等到下一次重開機,電腦才會真的照做;要是你把它關掉,背景還會留下一支不會停的舊程式。現在只要你一點開關,系統就會馬上拍拍電腦的肩膀跟它說「現在就開始」或「馬上停下來」,不用再等重開機了。就像你跟大樓管理員說明天開始不要送報紙了,以前他只會寫在明天的交接本上,今天還是照送;現在他會立刻用對講機跟派報生說停送。
發布日期:2026-05-27
以前你在選單裡點了「開機自動啟動」的開關,系統只會默默記在筆記本裡,你得等到下一次重開機,電腦才會真的照做;要是你把它關掉,背景還會留下一支不會停的舊程式。現在只要你一點開關,系統就會馬上拍拍電腦的肩膀跟它說「現在就開始」或「馬上停下來」,不用再等重開機了。就像你跟大樓管理員說明天開始不要送報紙了,以前他只會寫在明天的交接本上,今天還是照送;現在他會立刻用對講機跟派報生說停送。
When you toggled "Launch at login" from the menu, the system previously just jotted it down in a config file and waited for your next reboot to actually do anything about it; and turning it off left a zombie background process running. Now, the moment you flip the switch, the system instantly taps macOS on the shoulder to say "start doing this now" or "stop right now", with zero reboots required. It's like telling the building manager to cancel your newspaper delivery: they used to just write it in tomorrow's log while still delivering today's paper, but now they immediately radio the delivery person to stop.
**"Launch at login" toggle now takes effect immediately, no reboot needed**: `login_item.enable()` / `disable()` now invoke `launchctl bootstrap gui/<uid> <plist>` / `launchctl bootout gui/<uid>/<label>` in addition to writing/removing `~/Library/LaunchAgents/com.lollapalooza.usage.plist`, so launchd learns about the change right away. Previously only the plist file was touched, so the toggle did nothing until the next reboot, and disabling left a KeepAlive orphan process behind. `launchctl` "already bootstrapped" (exit 17) and "not bootstrapped" (exit 113) are treated as success; other failures log a warning without affecting the plist operation (signatures stay `() -> None`).