Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pybridge: Fix superuser startup vs. package reloading race
When the superuser bridge gets auto-started via the init message or the integration tests, it can happen that loading the packages and manifests finishes after the superuser bridge already runs. That bridge previously had the name "init", and once packages finished loading, set_config() stopped that "init" bridge as it is not decleared by the manifests (usually "sudo" and "pkexec"). That led to the session sometimes not being privileged. This was particularly prone to happen in the "devel" scenario where the packages are much larger and processing took much longer. Avoid that by setting `self.current` to the correct requested name right from the start. Fixes #19014
- Loading branch information