LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gvfs-open

opens files and URIs with their default applications

TLDR

Open file with default app
$ gvfs-open [file.pdf]
copy
Open URL
$ gvfs-open [https://example.com]
copy
Open remote file
$ gvfs-open smb://server/share/document.docx
copy
Open directory in file manager
$ gvfs-open [directory]
copy

SYNOPSIS

gvfs-open [OPTION...] [FILE...]

DESCRIPTION

gvfs-open opens files with the default application registered to handle files of that type. It obtains MIME type information from the shared-mime-info database, and the default handler is stored per-user in `$XDGDATAHOME/applications/mimeapps.list`.The tool handles local files, remote URIs, and URLs. When a running GNOME session is detected, `xdg-open` actually calls `gvfs-open` internally.

PARAMETERS

FILE

File, directory, or URI to open.
-h, --help
Display help information.
--version
Show version number and exit.

CAVEATS

Deprecated in favor of gio open. GNOME specific. Requires proper MIME associations.

HISTORY

gvfs-open was developed as part of GVFS for GNOME, now largely replaced by the gio and xdg-open commands.

SEE ALSO

gio(1), xdg-open(1), open(1)

Copied to clipboard
Kai