Skip to content

fix(settings-search): resolve placeholders - #3985

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
hthienloc:issue-3970-settings-search-placeholders
Oct 28, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
hthienloc:issue-3970-settings-search-placeholders

Conversation

@hthienloc

Copy link
Copy Markdown
Member

Fixes #3970

image

@hthienloc

Copy link
Copy Markdown
Member Author

/claude review

}

Connections {
target: UsersService

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

claude Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Claude review

Placeholders now resolve correctly, but resolving them pulls UsersService into every settings and launcher search.

  • Referencing UsersService instantiates it and runs its getent refresh chain outside the Users tab, quickshell/Services/SettingsSearchService.qml:53
    Checked: SettingsSearchService arg resolution and refresh hooks, extractor regex/group handling and descriptionArgs emission, regenerated index entries, UsersService lifecycle. Model: claude-opus-5-5.

@bbedward

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found. The earlier UsersService comment is resolved: refresh() now runs from UsersTab/CreateUserTab, so the search service referencing the singleton only costs its default wheel/greeter values until a Users tab opens.
Checked: removal of the UsersService auto-refresh and its remaining consumers (only the two Settings tabs), refresh re-entry guard, SettingsSearchService arg resolution and cache refresh on group changes, extractor regex groups and descriptionArgs emission, regenerated index entries. Model: claude-opus-5-5.

@bbedward
bbedward merged commit 083b9c5 into duxlabs-dev:master Oct 28, 2026
2 checks passed
dux-ci Bot pushed a commit that referenced this pull request Oct 28, 2026
@hthienloc
hthienloc deleted the issue-3970-settings-search-placeholders branch November 15, 2026 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launcher showing placeholders for descriptions of specific settings, not the real values

2 participants