Menu Item what does %U or %F mean

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
pgmer6809
Level 4
Level 4
Posts: 228
Joined: Sun Mar 04, 2012 9:06 pm

Menu Item what does %U or %F mean

Post by pgmer6809 »

I am creating a new menu item in cinnamon. Pretty straight forward to give the item a name, an icon and so forth.
When it comes to the command, I can enter eg.

Code: Select all

/usr/bin/progname
but I notice that other programs such as xed often have a %U in this field. Some other programs eg GVim have -f %F.
Where is the documentation on what %U and %F do? and are there other options as well?
the man page on dconf-editor does not seem very helpful, nor does the man page on gsettings.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
t42
Level 11
Level 11
Posts: 3744
Joined: Mon Jan 20, 2014 6:48 pm

Re: Menu Item what does %U or %F mean

Post by t42 »

It is an argument to the Exec key
%u is a list of URLs or file paths. Each URL is passed as a separate argument to the application.
%f is a single file name (or file path), even if multiple selections are made
see Desktop entry keys
-=t42=-
Locked

Return to “Cinnamon”