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

Open Folder dialog not triggering directory selection #3217

Open
chazfg opened this issue Apr 28, 2024 · 3 comments
Open

Open Folder dialog not triggering directory selection #3217

chazfg opened this issue Apr 28, 2024 · 3 comments
Labels
C-bug Category: bug - something isn't working as it's supposed to

Comments

@chazfg
Copy link

chazfg commented Apr 28, 2024

Lapce Version

Nightly

System information

Artix 6.8.7, Hyprland WM

Describe the bug

Open Folder/File does not work.

Additional information

30 minutes later update: This looks like it's coming from a weird interaction between rusty file dialog and wayland

@chazfg chazfg added the C-bug Category: bug - something isn't working as it's supposed to label Apr 28, 2024
@chazfg
Copy link
Author

chazfg commented Apr 29, 2024

When opening from terminal with -w I get this when I try to open a folder

2024-04-29T02:02:10.851682Z ERROR rfd::backend::xdg_desktop_portal: pick_folder error No such file or directory (os error 2)

@chazfg
Copy link
Author

chazfg commented Apr 29, 2024

rfd wasn't working with my current desktop portal set up. Went through, made sure that I'd had xdg-portal conf set up so that it would choose GTK for a FileChooser (since hyprland desktop portal does not have a file chooser) but there was still the above error. xdg-desktop-portal is installed. Whatever the case, rfd (and by extension the open folder dialog) work when specifying the gtk3 feature over the xdg-portal feature. I created a fork of floem to modify the way it handles the rfd dependency to test if then Lapce would work, and it did.

Basically, I added the ability to choose between gtk3 and xdg-portal when using floem as a crate

@IamRezaMousavi
Copy link

I have this issue in KDE Plasma on Arch linux too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug - something isn't working as it's supposed to
Projects
None yet
Development

No branches or pull requests

2 participants