xdg-open: add page (#5516)

add-set-more-info-link.py
Gonzalo Contreras Aso 2021-03-29 14:44:53 +02:00 committed by GitHub
parent 1f6ee60fb3
commit 4402fb0e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# xdg-open
> Abre un archivo o URL en la aplicación predeterminada del usuario.
> Más información: <https://man.archlinux.org/man/xdg-open.1>.
- Abre el directorio actual en el explorador de archivos predeterminado:
`xdg-open .`
- Abre una URL en el navegador predeterminado:
`xdg-open {{https://www.ejemplo.es}}`
- Abre una image en el visor de imágenes predeterminado:
`xdg-open {{ruta/al/imagen}}`
- Abre un PDF en el visor de PDF predeterminado:
`xdg-open {{ruta/al/pdf}}`
- Muestra la ayuda:
`xdg-open --help`

24
pages/linux/xdg-open.md Normal file
View File

@ -0,0 +1,24 @@
# xdg-open
> Opens a file or URL in the user's preferred application.
> More information: <https://man.archlinux.org/man/xdg-open.1>.
- Open the current directory in the default file explorer:
`xdg-open .`
- Open an URL in the default browser:
`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`