Skip to content

Commit

Permalink
README: Remove untested portal warning and link current_folder PR (#96)
Browse files Browse the repository at this point in the history
Portals are now fairly well-tested by a variety of users of NFDe.

A link is now also added to flatpak/xdg-desktop-portal#874 that adds support for setting a default folder in the OpenFile() method.
  • Loading branch information
btzy authored Apr 13, 2023
1 parent 2b55a1f commit da81bb0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,9 @@ SDL_Quit(); // Then deinitialize SDL2

On Linux, you can use the portal implementation instead of GTK, which will open the "native" file chooser selected by the OS or customized by the user. The user must have `xdg-desktop-portal` and a suitable backend installed (this comes pre-installed with most common desktop distros), otherwise `NFD_ERROR` will be returned.

The portal implementation is much less battle-tested than the GTK implementation. There may be bugs — please report them on the issue tracker.

To use the portal implementation, add `-DNFD_PORTAL=ON` to the build command.

*Note: Setting a default path is not supported by the portal implementation, and any default path passed to NFDe will be ignored. This is a limitation of the portal API, so there is no way NFDe can work around it.*
*Note: Setting a default path is not supported by the portal implementation, and any default path passed to NFDe will be ignored. This is a limitation of the portal API, so there is no way NFDe can work around it. If this feature is something you desire, please show your interest on https://github.com/flatpak/xdg-desktop-portal/pull/874.*

### What is a portal?

Expand Down

0 comments on commit da81bb0

Please sign in to comment.