HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dex — DesktopEntry Execution is a program to generate and execute DesktopEntry files of the Application ty

Submitted by: @import:tldr-pages··
0
Viewed 0 times
dexcommandandcliprogramexecutiongeneratedesktopentry
linux

Problem

How to use the dex command: DesktopEntry Execution is a program to generate and execute DesktopEntry files of the Application type. More information: <https://github.com/jceb/dex#dex>.

Solution

dex — DesktopEntry Execution is a program to generate and execute DesktopEntry files of the Application type. More information: <https://github.com/jceb/dex#dex>.

Execute all programs in the autostart folders:
dex {{[-a|--autostart]}}


Execute all programs in the specified folders:
dex {{[-a|--autostart]}} {{[-s|--search-paths]}} {{path/to/directory1}}:{{path/to/directory2}}:{{path/to/directory3}}:


Preview the programs would be executed in a GNOME specific autostart:
dex {{[-a|--autostart]}} {{[-e|--environment]}} {{GNOME}}


Preview the programs would be executed in a regular autostart:
dex {{[-a|--autostart]}} {{[-d|--dry-run]}}


Preview the value of the DesktopEntry property Name:
dex {{[-p|--property]}} {{Name}} {{path/to/file.desktop}}


Create a DesktopEntry for a program in the current directory:
dex {{[-c|--create]}} {{path/to/file.desktop}}


Execute a single program (with Terminal=true in the .desktop file) in the given terminal:
dex --term {{terminal}} {{path/to/file.desktop}}

Code Snippets

Execute all programs in the autostart folders

dex {{[-a|--autostart]}}

Execute all programs in the specified folders

dex {{[-a|--autostart]}} {{[-s|--search-paths]}} {{path/to/directory1}}:{{path/to/directory2}}:{{path/to/directory3}}:

Preview the programs would be executed in a GNOME specific autostart

dex {{[-a|--autostart]}} {{[-e|--environment]}} {{GNOME}}

Preview the programs would be executed in a regular autostart

dex {{[-a|--autostart]}} {{[-d|--dry-run]}}

Preview the value of the DesktopEntry property `Name`

dex {{[-p|--property]}} {{Name}} {{path/to/file.desktop}}

Context

tldr-pages: linux/dex

Revisions (0)

No revisions yet.