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

Dialog does not appear in WSL #194

Open
tgross35 opened this issue May 1, 2024 · 1 comment
Open

Dialog does not appear in WSL #194

tgross35 opened this issue May 1, 2024 · 1 comment

Comments

@tgross35
Copy link

tgross35 commented May 1, 2024

I am attempting to open a simple dialog via rfd::FileDialog::new().pick_file(). This works on other systems but attempting to run in WSL gives the following error without opening the dialog:

[2024-05-01T02:25:36Z ERROR rfd::backend::xdg_desktop_portal] pick_file error No such file or directory (os error 2)

Using rfd 0.14.1 with no specific features enabled or diabled. xdg-desktop installs available:

libghc-xdg-desktop-entry-dev/lunar 0.1.1.1-2build1 amd64
libghc-xdg-desktop-entry-doc/lunar 0.1.1.1-2build1 all
libghc-xdg-desktop-entry-prof/lunar 0.1.1.1-2build1 amd64
xdg-desktop-portal-dev/lunar 1.16.0-2ubuntu1 all
xdg-desktop-portal-gnome/lunar 44~beta-1ubuntu2 amd64
xdg-desktop-portal-gtk/lunar 1.14.1-1 amd64
xdg-desktop-portal-kde/lunar 5.27.4.1-0ubuntu1 amd64
xdg-desktop-portal-lxqt/lunar 0.3.0-0ubuntu4 amd64
xdg-desktop-portal-tests/lunar 1.16.0-2ubuntu1 amd64
xdg-desktop-portal-wlr/lunar 0.6.0-1 amd64
xdg-desktop-portal/lunar 1.16.0-2ubuntu1 amd64
@PolyMeilex
Copy link
Owner

Perhaps try to install zenity, it should fallback to it in case your xdg portal is not running as expected.

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

2 participants