enter image description here

I don't find %f, %F, %u, %U in bash manual.

In /usr/share/applications/gedit.desktop, I also see similar usage:

[Desktop Entry]
GenericName=Text Editor
Comment=Edit text files
Exec=gedit %U

Do %f, %F, %u, %U belong to bash?

If not, what uses them?


No, they are provided by the software that created the window.

  • Thanks. What, if not bash, uses them? – Tim Jun 14 '17 at 21:56
  • 6
    The software that created the window. – DopeGhoti Jun 14 '17 at 22:00

Have a look at Recognized Desktop Entry Keys of FreeDesktop.

Specifically have a look at the Exec Key.
In your case $U means it should handle the input which comes after the call to the program as URL Address.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.