Skip to content

Conversation

@probonopd
Copy link
Contributor

@probonopd probonopd commented Jan 2, 2026

Add error handling for the case when lprcannot be found on the $PATH.

Copilot AI review requested due to automatic review settings January 2, 2026 05:27
@probonopd probonopd requested a review from fredkiefer as a code owner January 2, 2026 05:27
probonopd added a commit to gershwin-desktop/libs-gui that referenced this pull request Jan 2, 2026
Copy link
Contributor

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 adds robust error handling to prevent application crashes when the lpr printing utility is not available on the system. The changes ensure graceful degradation with user-friendly error messages.

  • Validates that lpr exists before attempting to use it
  • Wraps task launch in exception handling to catch runtime errors
  • Shows informative alert panels to users when printing fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants