Files
tldr/pages.zh/linux/flatpak-run.md

24 lines
795 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.

# flatpak run
> 运行 flatpak 应用程序和运行时。
> 更多信息:<https://docs.flatpak.org/en/latest/flatpak-command-reference.html#flatpak-run>。
- 运行已安装的应用程序:
`flatpak run {{com.example.app}}`
- 从特定的分支运行已安装的应用程序,例如 stable、beta、master
`flatpak run --branch={{stable|beta|master|...}} {{com.example.app}}`
- 在 flatpak 内部运行一个交互式 shell
`flatpak run --command={{sh}} {{com.example.app}}`
- 以特定的运行时版本运行已安装的应用程序:
`flatpak run --runtime-version={{24.08|master|stable|...}} {{com.example.app}}`
- 使用不同的运行时(但相同的版本号)运行已安装的应用程序:
`flatpak run --runtime={{org.freedesktop.Sdk}} {{com.example.app}}`