Repository navigation
Conversation
|
/claude review |
| } | ||
|
|
||
| Connections { | ||
| target: UsersService |
There was a problem hiding this comment.
Referencing UsersService here (and in _descriptionArgument) instantiates it as soon as SettingsSearchService loads. UsersService runs refresh() in Component.onCompleted, which chains 5 sh/getent processes (including the full getent passwd scan) and then holds the users list in memory. Before this PR that only happened when the Users tab opened. Now the first launcher query (AppSearchService.searchForLauncher) or a dock trash "settings" click does it too, for a description string.
Fix: don't reference UsersService from the search service. Either show a static fallback (wheel/greeter, or sudo), or move UsersService.refresh() out of Component.onCompleted and into UsersTab so that loading the singleton costs nothing.
Claude reviewPlaceholders now resolve correctly, but resolving them pulls UsersService into every settings and launcher search.
|
|
/claude review |
Claude reviewNo issues found. The earlier UsersService comment is resolved: |
port 2.0 (cherry picked from commit 083b9c5)
Fixes #3970