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: multiple extension filters on macOS #23409

Merged
merged 1 commit into from
May 7, 2020
Merged

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented May 5, 2020

Description of Change

Closes #23316.

Fixes an issue whereby macOS would fail to allow file extensions containing periods.macOS, it turns out, is incapable of understanding multiple file extensions, so if something like tar.gz is passed in it will not match files correctly because it natively will throw out anything it doesn't recognize as a valid system extension. We fix this by tokenizing the extension and only passing the final component of the extension (as delimited by .) to macOS.

Tested with https://gist.github.com/7ce9ea238a838bdfb30337ac43daa8a6.

Checklist

Release Notes

Notes: Fixes an issue whereby macOS would fail to allow file extensions containing periods.

@codebytere codebytere requested review from ckerr and zcbenz May 5, 2020 05:05
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 5, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 6, 2020
@codebytere codebytere merged commit fc434f1 into master May 7, 2020
@release-clerk
Copy link

release-clerk bot commented May 7, 2020

Release Notes Persisted

Fixes an issue whereby macOS would fail to allow file extensions containing periods.

@trop
Copy link
Contributor

trop bot commented May 7, 2020

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

@trop
Copy link
Contributor

trop bot commented May 7, 2020

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

@trop
Copy link
Contributor

trop bot commented May 7, 2020

I have automatically backported this PR to "7-2-x", please check out #23451

@codebytere codebytere deleted the fix-multiple-extensions branch May 7, 2020 15:54
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.

Open dialog filter does not except a file extension of tar.gz
2 participants