Ubuntu – In a .desktop file, what is the “%U” variable

xdg

Or, more generally, what is the syntax of the commands such as exo-open --launch WebBrowser %u ?

Best Answer

When the program is launched the file manager or program launcher will expand the %u with a single URL or file path of the thing you are trying to open.

See the Freedesktop.org Desktop Entry Specification for other codes that you can use in a .desktop file.