How to get gnome-open in Fedora Silverblue?

Fedora Workstation does have a nice (preinstalled) CLI command called gnome-open (/usr/bin/gnome-open). It can open URLs or, what is really useful the file manager (Nautilus). So you can e.g. do gnome-open $PWD and Nautilus opens with the current dir.

It is basically the “reverse” way of opening a terminal from Nautilus.

Now, how can I get the same in Fedora Silverblue. As it seems gnome-open is not installed there. Not even in a toolbox container I’ve created.

Install libgnome. That should give you gnome-open

⬢[returntrip@toolbox ~]$ dnf provides gnome-open
Last metadata expiration check: 0:01:00 ago on Sun 07 Jul 2019 20:28:11 CEST.
libgnome-2.32.1-18.fc30.i686 : GNOME base library
Repo        : fedora
Matched from:
Filename    : /usr/bin/gnome-open

libgnome-2.32.1-18.fc30.x86_64 : GNOME base library
Repo        : fedora
Matched from:
Filename    : /usr/bin/gnome-open
1 Like

You should use xdg-open instead. It’s the cross-desktop version (which I assume, but do not know for sure, may be installed already.)

1 Like

Yes, thanks, it indeed is preinstalled, as also suggested by @refi64 here.

gnome-open has been superseded by gio open a long time ago (note the 2.32 version of the libgnome package).

xdg-open is a big wrapper script around the different desktop-specific tools, gio open in GNOME’s case.

2 Likes