Closed ferben closed 1 year ago
This appear on macOS 12.6.3 too (macMini M1).
Root cause: Issue appear under user "Developer" with home "/Users/dev".
Under this user function SCDynamicStoreCopyConsoleUser() return username "loginwindow" so it leads to skip Dock restart.
It is a really strange bug because conditions for reproduction is not fully clear.
But root cause is known.
In suggested commit it was solved by fallback to call POSIX function getuid()
.
Unfortunately I withdraw pull-request because I can no more verify if it really helps.
If anybody want test binary I can build in my forked project separately.
Reproduce:
after command
killall Dock
item appear in dock.This bug appear on macOS 11.6.5 Big Sur, macOS 12.3.1 is OK.