pub fn notify_refresh() -> usizeExpand description
Notify every running GUI (if any) that profile state has changed.
Returns the number of listeners that accepted the notification —
0 is the normal case when no GUI is running. Errors are
swallowed; this function is safe to call from any CLI exit path.
As a side-effect, sockets that fail to connect with ECONNREFUSED or
ENOENT are unlinked: this keeps $XDG_RUNTIME_DIR from accumulating
dead socket files when GUIs crash.