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

32 lines
895 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.

# dex
> DesktopEntry 执行程序是一个生成和执行应用程序类型的 DesktopEntry 文件的程序。
> 更多信息: <https://github.com/jceb/dex>。
- 执行所有自启动文件夹中的程序:
`dex --autostart`
- 执行指定文件夹中的所有程序:
`dex --autostart --search-paths {{path/to/directory1}}:{{path/to/directory2}}:{{path/to/directory3}}:`
- 预览 GNOME 特定自启动中将要执行的程序:
`dex --autostart --environment {{GNOME}}`
- 预览常规自启动中将要执行的程序:
`dex --autostart --dry-run`
- 预览 DesktopEntry 属性 `Name` 的值:
`dex --property {{Name}} {{path/to/file.desktop}}`
- 为当前目录中的程序创建 DesktopEntry
`dex --create {{path/to/file.desktop}}`
- 在给定终端中执行单个程序(在桌面文件中设置 `Terminal=true`
`dex --term {{terminal}} {{path/to/file.desktop}}`