flatpak / flatpak-xdg-utils

Simple portal-based commandline tools for use inside flatpak sandboxes
GNU Lesser General Public License v2.1
32 stars 14 forks source link

xdg-open doesn't open folders #5

Closed bochecha closed 5 years ago

bochecha commented 6 years ago

I originally reported this against Transmission (https://github.com/flathub/com.transmissionbt.Transmission/issues/4) because I thought the bug was there, but after investigation it seems not.

Inside a Flatpak sandbox:

bash-4.3$ xdg-open file:///home/mathieu/Downloads
bash-4.3$ 

The command exits successfully (it returns 0) and silently but nothing happens.

With the "classic" (i.e not Flatpak) xdg-open, a Nautilus window pops up showing the folder.

wjt commented 6 years ago

Could you run dbus-monitor outside the sandbox, then run xdg-open? I have a memory of seeing an issue where xdg-open terminates before the recipient of its method call is activated, causing dbus-daemon to discard the method call.

Red herring, I see that xdg-open of a file works fine from within the sandbox. Sorry for the noise!

fmuellner commented 6 years ago

Probably a duplicate of this portal issue.

wjt commented 5 years ago

Agreed. This now works with xdg-desktop-portal 1.0.3.

hadess commented 5 years ago

Agreed. This now works with xdg-desktop-portal 1.0.3.

OK, closing. @bochecha, please reopen if the problem is still there.

bochecha commented 5 years ago

@hadess I just tried it, it indeed works. Thanks to whoever fixed it! :slightly_smiling_face: