2021-03-29 13:44:53 +01:00
|
|
|
# xdg-open
|
|
|
|
|
2024-04-25 23:58:21 +01:00
|
|
|
> Open a file or URL in the user's preferred application.
|
2022-03-09 04:31:08 +00:00
|
|
|
> More information: <https://portland.freedesktop.org/doc/xdg-open.html>.
|
2021-03-29 13:44:53 +01:00
|
|
|
|
|
|
|
- Open the current directory in the default file explorer:
|
|
|
|
|
|
|
|
`xdg-open .`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Open a URL in the default browser:
|
2021-03-29 13:44:53 +01:00
|
|
|
|
|
|
|
`xdg-open {{https://example.com}}`
|
|
|
|
|
|
|
|
- Open an image in the default image viewer:
|
|
|
|
|
|
|
|
`xdg-open {{path/to/image}}`
|
|
|
|
|
|
|
|
- Open a PDF in the default PDF viewer:
|
|
|
|
|
|
|
|
`xdg-open {{path/to/pdf}}`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`xdg-open --help`
|