Skip to content

Commit

Permalink
Use portals by default (#130)
Browse files Browse the repository at this point in the history
* Use portals by default

It can be safely assumed that a system has portals by default; if they don't, many things will simply fail to work, including, but not limited to, the dark mode preference and many other freedesktop settings.

Those that absolutely refuse to use D-Bus will thus end up with an unusable system in the first place, if they want to use anything desktop-related. So enabling the portal backend by default is fine.

GTK will, of course, fall back to using the portals if it's running inside of a Flatpak environment, but it requires manual workarounds outside of one. And, of course, having a library depend on GTK when it's more or less unnecessary isn't ideal.

* Add default async-std feature

* Update CHANGELOG

---------

Co-authored-by: PolyMeilex <[email protected]>
  • Loading branch information
orowith2os and PolyMeilex authored Feb 19, 2024
1 parent ad3cdef commit 79221e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Change Log

## [Unreleased]
- Use XDG Portal as default
- Use zenity as a fallback for xdgp
- Update `raw-window-handle` to 0.6.
- Update `winit` in example to 0.29.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/PolyMeilex/rfd"
documentation = "https://docs.rs/rfd"

[features]
default = ["gtk3"]
default = ["xdg-portal", "async-std"]
file-handle-inner = []
gtk3 = ["gtk-sys", "glib-sys", "gobject-sys"]
xdg-portal = ["ashpd", "urlencoding", "pollster"]
Expand Down

0 comments on commit 79221e8

Please sign in to comment.