Skip to content

plugins: ignore a widget surface that reuses the desktop component - #4084

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
KadirJeager:fix/plugin-desktop-widget-surface
Nov 2, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
KadirJeager:fix/plugin-desktop-widget-surface

Conversation

@KadirJeager

Copy link
Copy Markdown
Contributor

Description

Some plugin manifests list the same file for the widget and desktop surfaces, for example Material Player & Lyrics (notsopreety/materialPlayer):

"components": { "widget": "./MaterialPlayer.qml", "desktop": "./MaterialPlayer.qml" }

That file is a DesktopPluginComponent card (420×120). Because the manifest claims a widget surface, the bar and dock widget pickers offer it, and once added it renders at card size and overflows the bar or dock. One root item can't be both a desktop card and a bar pill, so _resolveComponentPaths now drops the widget surface when it points at the desktop component and logs a warning. The plugin keeps working as a desktop widget.

tests/plugin-surfaces.test.mjs: same file (with and without ./) drops the widget surface; separate files and a widget-only plugin are unchanged. The test fails without the change. The two failing tests in tests/ (audio profile list/set) fail on master as well.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

None found.

Screenshots / video

None; the plugin just no longer appears in the bar and dock widget pickers. Log on load: widget surface reuses the desktop component, ignoring it in …/plugins/materialPlayer.

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible (no strings)
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean (no Go changes)
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors (no new behavior to document)

🤖 Generated with Claude Code

Some manifests list the same file for both the widget and the desktop
surface. That component is a desktop card, so the bar and dock widget
pickers offered it and it rendered at card size, overflowing the bar or dock.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 14:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 2, 2026
@bbedward

bbedward commented Nov 2, 2026

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: _resolveComponentPaths widget/desktop dedup (path normalization via _pluginFilePath, legacy component path untouched, effect on surfaces/componentPath and the pure-desktop auto-enable in _onManifestParsed), and the new vm-based test against existing PluginService test conventions. Model: claude-opus-5-5.

@bbedward
bbedward merged commit 2e566d5 into duxlabs-dev:master Nov 2, 2026
3 checks passed
purian23 pushed a commit that referenced this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants