Skip to content

WIP - present a method to use native file selector#49

Draft
metal3d wants to merge 2 commits into
fyne-io:masterfrom
metal3d:native-file-dialog
Draft

WIP - present a method to use native file selector#49
metal3d wants to merge 2 commits into
fyne-io:masterfrom
metal3d:native-file-dialog

Conversation

@metal3d

@metal3d metal3d commented Dec 4, 2022

Copy link
Copy Markdown
Contributor

Even if the Fyne file dialogs are OK, it nice to be able to use the native file selector as it proposes some native actions as "create a directory", use bookmarks, etc.

Zenity and KDialogs are commonly installed in Linux. This work in progress proposes a way to use native dialogs.

NOTE: this could be extended to info dialogs, alerts, and many others.

Even if the Fyne file dialogs are OK, it nice to be able to use the
native file selector as it proposes some native actions as "create a
directory", use bookmarks, etc.

Zenity and KDialogs are commonly installed in Linux. This work in
progress proposes a way to use native dialogs.

NOTE: this could be extended to info dialogs, alerts, and many others.
@Bluebugs

Bluebugs commented Dec 7, 2022

Copy link
Copy Markdown
Contributor

I like this. I actually think that it might be right to have it in the main repository. Their has been demand for native file dialog on Windows and MacOS too. No idea what are others opinion on this, and I would be interested to hear it.

@Jacalz

Jacalz commented Apr 11, 2023

Copy link
Copy Markdown
Member

I came across https://github.com/ncruces/zenity. It might be useful for implementing this more cleanly across multiple platforms.

@andydotxyz

Copy link
Copy Markdown
Member

I came across https://github.com/ncruces/zenity. It might be useful for implementing this more cleanly across multiple platforms.

Are you sure? Does that not rely on an external binary being installed?

@Jacalz

Jacalz commented Apr 12, 2023

Copy link
Copy Markdown
Member

I came across https://github.com/ncruces/zenity. It might be useful for implementing this more cleanly across multiple platforms.

Are you sure? Does that not rely on an external binary being installed?

It does, but so does this PR at the moment. I don't mean that it is a good candidate for being in the main fyne repository but rather that it might be a better solution than what this PR currently does.

@andydotxyz

Copy link
Copy Markdown
Member

I am leaning back in this direction for file dialogs in the main repo - particularly for Windows and macOS.
Should we pick this up over in fyne to avoid duplicating the dialog APIs?

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.

4 participants