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

Use portals for file access on Linux #2197

Open
DemiMarie opened this issue Mar 4, 2025 · 1 comment
Open

Use portals for file access on Linux #2197

DemiMarie opened this issue Mar 4, 2025 · 1 comment

Comments

@DemiMarie
Copy link

Your use case

What would you like to do?

Use XDG portals for file access, as GTK and Qt do

Why would you like to do it?

Provides a native interface and unbreaks the Flatpak package.

How would you like to achieve it?

Use the XDG portal API.

Have you considered any alternatives?

None

Additional context

Portals are the modern way to access files on desktop Linux. They are supported by all major desktop environments.

@t3chguy
Copy link
Member

t3chguy commented Mar 5, 2025

This happens entirely upstream of us. We just use https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file which Electron translates to the most appropriate mechanism for the given OS & DE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants