Skip to content

fix: enable deviceName validation on Linux - #34872

Merged
codebytere merged 1 commit into
mainfrom
clean-up-deviceName-validation
Jul 13, 2022
Merged

fix: enable deviceName validation on Linux#34872
codebytere merged 1 commit into
mainfrom
clean-up-deviceName-validation

Conversation

@codebytere

@codebytere codebytere commented Jul 11, 2022

Copy link
Copy Markdown
Member

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.

@codebytere
codebytere requested review from deepak1556 and zcbenz July 11, 2022 09:42
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently 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 recently label Jul 12, 2022
@codebytere

Copy link
Copy Markdown
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

release-clerk Bot commented Jul 13, 2022

Copy link
Copy Markdown

Release Notes Persisted

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

@trop

trop Bot commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

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.

2 participants