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.
Notice the %U used in the .desktop file above. It is used so as the application to be able to accept an argument when dragging and dropping a file inside the Unity bar on the left. Without it, the program will launch itself, but the argument will not be passed to it and it will be just the same as clicking the application so as to launch.
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.
From Ubuntu documentation:
That is called an
Exec
key code, which is listed here and discussed with more details in this answer.That is a different matter and the use of an
Exec
key code in this case is both unneeded and has no effect.It is not part of the expected arguments/parameters for
exo-open
and will be ignored in this case.Unless it is used as a parameter / argument for
Exec
in a.desktop
file like so:and in both cases
%u
is out of the scope ofexo-open
.