List of valid Exec parameter variables

Each "Exec" field may take a number of arguments which will be expanded by the file manager or program launcher and passed to the program if necessary. Recognized fields are as follows:

%f a single file name, even if multiple files are selected. The system reading the Desktop Entry should recognize that the program in question cannot handle multiple file arguments, and it should should probably spawn and execute multiple copies of a program for each selected file if the program is not able to handle additional file arguments. If files are not on the local file system (i.e. HTTP or FTP locations), the files will be copied to the local file system and %f will be expanded to point at the temporary file. Used for programs that do not understand URL syntax.
%F a list of files. Use for apps that can open several local files at once.
%u a single URL.
%U a list of URLs.
%d the directory of the file to open.
%D a list of directories
%n a single filename (without path)
%N a list of filenames (without path)
%i the icon associated with the desktop entry
%m the mini-icon associated with the desktop entry
%c the comment associated with the desktop entry
%k the name of the desktop file
%v the name of the Device entry in the desktop file