Skip to content

Actions Quick Reference

Michael Webster edited this page Feb 3, 2025 · 2 revisions
[Nemo Action]
# Mandatory fields
Name=Menu item label
Exec=program_to_run or <custom-script.sh>
Selection=s|m|any|notnone|none|42

Extensions=[dir|none|nodirs|any] | pdf;ps;
# and/or
Mimetypes=text/plain;

# Optional fields
Comment=If you click this menu entry, %F will be acted upon!
Icon-Name=folder-symbolic
Separator=,
Quote=single|double|backtick
Dependencies=notify-send;!zenity;
UriScheme=sftp
Conditions=desktop;dbus <name>;gsettings foo_schema foo_boolkey;removable;exec <program>;
Terminal=true|false
Files=.bash*;!.bashrc;
Locations=.*;!.config;

Tokens used in the Name, Comment and Exec fields:
  • %U: insert URI list of selection.
  • %F: insert path list of selection.
  • %P: insert path of parent (current) directory.
  • %f: insert display name of first selected file.
  • %p: insert display name of parent directory.
  • %D: insert device path of file (i.e. /dev/sdb1).
  • %e: insert display name of first selected file with the extension stripped.
  • %%: insert a literal percent sign, don't treat the next character as a token.
  • %X: insert the XID for the NemoWindow this action is being activated in.
  • %N: (deprecated) - same as %f.

Clone this wiki locally