Skip to content

Conversation

@gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Feb 9, 2024

Why

Closes ENG-11321

How

Use electron's dialog API to add support for the FilePicker module when running electron

Test Plan

Screen.Recording.2024-02-09.at.16.14.07.mov

@linear
Copy link

linear bot commented Feb 9, 2024


const installAppFromURI = useCallback(
async (appURI: string) => {
let localFilePath = appURI.startsWith('/') ? appURI : undefined;
Copy link
Member Author

Choose a reason for hiding this comment

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

Local file paths do not start with a slash in Windows

@gabrieldonadel gabrieldonadel marked this pull request as ready for review February 9, 2024 19:16
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/electron-file-picker branch from 2b14b3f to 0a9cea2 Compare February 9, 2024 19:49
@gabrieldonadel gabrieldonadel merged commit 2ac2496 into main Feb 9, 2024
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/electron-file-picker branch February 9, 2024 19:52
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.

3 participants