Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable deviceName validation on Linux #34872

Merged
merged 1 commit into from Jul 13, 2022

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Jul 11, 2022

Description of Change

This PR enables printer validity to be verified on Linux. At the moment, if an invalid deviceName is passed to Linux, it will just fail silently. This makes it such that the callback is called with a failure if the deviceName is invalid, as well as consolidates some of the validation logic so that, among other things, IsDeviceNameValid is only called once.

Checklist

Release Notes

Notes: Fixed an issue where printing with an invalid deviceName on Linux caused silent failures.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 11, 2022
@codebytere codebytere force-pushed the clean-up-deviceName-validation branch from affcc8e to 1b62d59 Compare July 11, 2022 09:44
@codebytere codebytere changed the title fix: enable deviceName validation on Linux fix: enable deviceName validation on Linux Jul 11, 2022
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/19-x-y labels Jul 11, 2022
@codebytere codebytere marked this pull request as draft July 11, 2022 11:38
@codebytere codebytere force-pushed the clean-up-deviceName-validation branch from 1b62d59 to f0adf5f Compare July 11, 2022 11:39
@codebytere codebytere marked this pull request as ready for review July 11, 2022 11:43
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 12, 2022
@codebytere
Copy link
Member Author

@codebytere codebytere merged commit 07d1683 into main Jul 13, 2022
@codebytere codebytere deleted the clean-up-deviceName-validation branch July 13, 2022 10:23
@release-clerk
Copy link

release-clerk bot commented Jul 13, 2022

Release Notes Persisted

Fixed an issue where printing with an invalid deviceName on Linux caused silent failures.

@trop
Copy link
Contributor

trop bot commented Jul 13, 2022

I have automatically backported this PR to "19-x-y", please check out #34900

@trop
Copy link
Contributor

trop bot commented Jul 13, 2022

I have automatically backported this PR to "20-x-y", please check out #34901

schetle pushed a commit to schetle/electron that referenced this pull request Nov 3, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants