Files
tldr/pages.zh/linux/handlr.md

28 lines
601 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# handlr
> 管理您的默认应用程序。
> 更多信息:<https://github.com/chmln/handlr>。
- 在默认应用程序中打开一个 URL
`handlr open {{https://example.com}}`
- 在默认 PDF 查看器中打开一个 PDF 文件:
`handlr open {{path/to/file.pdf}}`
-`imv` 设置为 PNG 文件的默认应用程序:
`handlr set {{.png}} {{imv.desktop}}`
- 将 MPV 设置为所有音频文件的默认应用程序:
`handlr set {{'audio/*'}} {{mpv.desktop}}`
- 列出所有默认应用程序:
`handlr list`
- 打印 PNG 文件的默认应用程序:
`handlr get {{.png}}`