rfd icon indicating copy to clipboard operation
rfd copied to clipboard

File dialog doesn't open inside Docker container for version 0.12

Open Tuntenfisch opened this issue 1 year ago • 0 comments

I'm using Rerun which is using rfd version 0.12 to open file dialogs. Specifically it is using:

rfd = { version = "0.12", default-features = false, features = ["xdg-portal"] }

I've created an issue (https://github.com/rerun-io/rerun/issues/6794) there, and after some digging I found out that the problem is with rfd being unable to open a file dialog inside the Docker container using xdg-portal as a backend. I'm aware that rfd version 0.14.1 has a zenity fallback but bumping the rfdversion from 0.12 to 0.14.1 caused quiite a few duplicated dependencies as became apparent in a pull request (https://github.com/rerun-io/rerun/pull/6795) I've opened up inside the Rerun repository.

The duplicates are probably connected to rfd updating ashpd to version 0.8 in https://github.com/PolyMeilex/rfd/commit/a88718eba75a70ee24753b3fa02e08f56b21670b. My questions now are:

  1. Was there a reason for updating ashpd?
  2. Does anyone have an idea how I can get rfd version 0.12 with xdg-portal to work inside a Docker container? I've been trying stuff for a couple of days now without success...

Tuntenfisch avatar Jul 08 '24 14:07 Tuntenfisch