Skip to content

Conversation

@beeender
Copy link
Owner

If the mime-type doesn't exist, the process should exit with 0.

If the mime-type doesn't exist, the process should exit with 0.
@beeender beeender requested a review from Copilot May 20, 2025 13:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses the behavior change for the Wayland clipboard helper by ensuring that if the mime-type doesn't exist, the process exits with a success code.

  • Modified the mime type determination logic in the Wayland clipboard code.
  • Updated the error handling to return Ok() when the mime-type is not available.

supported_types,
)?)?;
let mime_type =
if let Ok(type_str) = decide_mime_type(&state.config.expected_mime_type, supported_types) {
Copy link

Copilot AI May 20, 2025

Choose a reason for hiding this comment

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

Consider adding a brief comment explaining that returning Ok() when the mime type is not found is intentional behavior as per the PR requirements.

Copilot uses AI. Check for mistakes.
@beeender beeender merged commit bb78e83 into main May 20, 2025
2 checks passed
@beeender beeender deleted the mc/fix_wayland_no_mime_type branch May 20, 2025 13:39
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.

2 participants