mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-16 18:57:06 -04:00
The unconditional startup scan introduced duplicate tray icons on normal boot because apps were still registering their own SNI items when the scan ran. Use CLOCK_BOOTTIME − CLOCK_MONOTONIC to detect whether the system has ever been suspended. The startup scan now only runs when the difference exceeds 5 s, meaning at least one suspend/resume cycle has occurred. On a fresh boot the difference is ≈ 0 and the scan is skipped entirely.