2.4 The sd-xdg-v0.3 subcommand

The sd-xdg-v0.3 subcommand executes a single XDG Desktop application as a systemd user unit. Its configuration is stored at config_dir/xdg-apps.kdl. See XDG app configuration for the suntax of the xdg-apps.kdl file.

tomloader sd-xdg-v0.3 [options] xdg-app-path

The following options are understood by tomloader sd-xdg-v0.3:

-h
--help

Print a short help on standard output, then exit.

-V
--version

Print the current version of tomloader sd-xdg-v0.3.

-n
--dry-run

Print the command line instead of executing it.

-a action
--action action

Use the specified action action instead of running the main application.

-o path
--open-file path

Pass file path path to the XDG Application. This option can be used multiple times, each path is converted into an absolute path, escaped, quoted and then puth on the command line in place of ‘%f’ (for a single file) or ‘%F’ (for multiple files).

Warning: sd-xdg-v0.3 only starts a single istance of an application, therefore if two or more files are passed to an XDG application with ‘%f’ field code (that only accepts a single character) then an error is issued and no application is started.