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

xdg portal on linux does not display dialog. #119

Closed
jpercyasnet opened this issue May 17, 2023 · 6 comments
Closed

xdg portal on linux does not display dialog. #119

jpercyasnet opened this issue May 17, 2023 · 6 comments

Comments

@jpercyasnet
Copy link

rfd = { version = "^0", default-features = false, features = ["xdg-portal"]}
The dialog does not appear and immediate result of NONE is produced.
Just started in the last few days. Linux Mint 21.1

@PolyMeilex
Copy link
Owner

What do

  1. dbus-send --print-reply=literal --dest=org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop org.freedesktop.DBus.Properties.Get string:org.freedesktop.portal.FileChooser string:version
  2. dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep "portal"

output?

Also if you have flatpack available could you check if file dialogs work in something like ashpd demo: https://flathub.org/apps/com.belmoussaoui.ashpd.demo (you could also build it from source)

@jpercyasnet
Copy link
Author

  1. variant uint32 3

  2. string "org.freedesktop.portal.Desktop"
    string "org.freedesktop.impl.portal.desktop.gtk"
    string "org.freedesktop.portal.Documents"
    string "org.freedesktop.portal.IBus"
    string "org.freedesktop.impl.portal.PermissionStore"

because I needed my programs to work I switched to crate native_dialog which interfaces with zenity.
would prefer that iced create a widget that could be used to create a filechooser like gtk did.

@uklotzde
Copy link

uklotzde commented May 19, 2023

Stopped working after upgrading to zvariant v3.14.0:

WARN rfd::backend::xdg_desktop_portal: Variant(Message("invalid value: string \"()\", expected at least one field signature between `(` and `)`"))

With zvariant v3.13.0 it works.

@PolyMeilex
Copy link
Owner

PolyMeilex commented May 19, 2023

Looks like it is working on master (probably due to ashpd update), could you check if this fixes it for you as well?
If so, I will just release a new version and call it a day.

EDIT: Published as part of 0.11.4 so cargo update should be enough to check no need for master.

@uklotzde
Copy link

Fixed by v0.11.4.

@PolyMeilex
Copy link
Owner

Thank you!

I'll close this now, @jpercyasnet in case this did not fix the problem for you, feel free to reopen.

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

No branches or pull requests

3 participants