File: README.rst

package info (click to toggle)
dex 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 100 kB
  • sloc: python: 496; makefile: 39
file content (76 lines) | stat: -rw-r--r-- 3,893 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
dex
===

Synopsis
--------

**dex** [*options*] [*DesktopEntryFile*]...

Description
-----------

``dex``, DesktopEntry Execution, is a program to generate and execute DesktopEntry files of the Application type.

Options
-------

+------------------------------------+------------------------------------------------------------+
| Option                             | Description                                                |
+====================================+============================================================+
| -h, --help                         | Show a help message and exit                               |
+------------------------------------+------------------------------------------------------------+
| -a, --autostart                    | Autostart programs                                         |
+------------------------------------+------------------------------------------------------------+
| -c, --create PATH                  | Create a DesktopEntry file for the program at the given    |
|                                    | path. An optional second argument is used to specify the   |
|                                    | filename of the created DesktopEntry file,or specify the   |
|                                    | filename - to print the file to stdout. By default a new   |
|                                    | file is createdwith the .desktop file extension.           |
+------------------------------------+------------------------------------------------------------+
| -d, --dry-run                      | Dry run, don't execute any command                         |
+------------------------------------+------------------------------------------------------------+
| -e, --environment ENVIRONMENT      | Specify the Desktop Environment an autostart should be     |
|                                    | performed for; works only in combination with -a           |
+------------------------------------+------------------------------------------------------------+
| -s, --search-paths SEARCHPATHS     | Colon separated list of paths to search for desktop files, |
|                                    | overriding the default search list                         |
+------------------------------------+------------------------------------------------------------+
| -t, --target-directory ENVIRONMENT | Create files in target directory                           |
+------------------------------------+------------------------------------------------------------+
| --test                             | Perform a self-test                                        |
+------------------------------------+------------------------------------------------------------+
| -v, --verbose                      | Verbose output                                             |
+------------------------------------+------------------------------------------------------------+
| -V, --version                      | Display version information                                |
+------------------------------------+------------------------------------------------------------+

Examples
--------

Perform an autostart/execute all programs in the autostart folders.

        ``dex -a``

Perform an autostart/execute all programs in the specified folders.

        ``dex -a -s /etc/xdg/autostart/:~/.config/autostart/``

Preview the programs would be executed in a regular autostart.

       ``dex -ad``

Preview the programs would be executed in a GNOME specific autostart.

       ``dex -ad -e GNOME``

Create a DesktopEntry for a program in the current directory.

       ``dex -c /usr/bin/skype``

Create a DesktopEntry for a programs in autostart directroy.

       ``dex -t ~/.config/autostart -c /usr/bin/skype /usr/bin/nm-applet``

Execute a single program from command line and enable verbose output.

       ``dex -v skype.desktop``