Linux command
dex 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
dex -a
Example
dex -a -s [path/to/dir1]:[path/to/dir2]
Example
dex -a -e GNOME
Example
dex -a -d
Example
dex -p Name [path/to/file.desktop]
Create
dex -c [/usr/bin/program]
Example
dex --term [terminal] [path/to/file.desktop]
说明
dex (DesktopEntry Execution) generates and executes .desktop files. It's commonly used to run XDG autostart programs or launch applications from their desktop entries. Useful for window managers that don't have built-in autostart support.
参数
- -a, --autostart
- Run programs in autostart directories
- -s, --search-paths _paths_
- Colon-separated search paths
- -e, --environment _env_
- Filter by desktop environment
- -d, --dry-run
- Preview without executing
- -c, --create _file_
- Create a desktop entry
- -p, --property _name_
- Show property value
- --term _terminal_
- Terminal to use for Terminal=true entries
FAQ
What is the dex command used for?
dex (DesktopEntry Execution) generates and executes .desktop files. It's commonly used to run XDG autostart programs or launch applications from their desktop entries. Useful for window managers that don't have built-in autostart support.
How do I run a basic dex example?
Run `dex -a` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --autostart do in dex?
Run programs in autostart directories