statusNotifierWatcher: Move the bus analyzer for seeking SNI's off-process by 3v1n0 · Pull Request #621 · ubuntu/gnome-shell-extension-appindicator (original) (raw)

@3v1n0

…ocess

Performing a lot of async parallel requests to inspect the bus for indicators is not ideal but sadly we have still to do it to ensure old broken indicators are not left hidden.

However, it's better to do all this without involving the gnome-shell process, and rather do it in a subprocess that can go at its own peace without breaking the compositor.

So move the seekStatusNotifierItems() code into an external scripts that writes the results to stdout.

We read them asynchronously and once we got something we add it to the panel, using the same logic as before.

Closes: #295, #310 LP: #2080221