Building, Testing, and Installation
You'll need the following dependencies:
meson to configure the build environment and then
ninja to build
meson build --prefix=/usr cd build ninja
To install, use
sudo ninja install
Writing Contract Files
elementary Files, Photos and other apps support adding options to the context menu by the way of Contract files.
These Contract files can be made system wide available by adding them to:
or for specific users by adding them to:
Simple .contract file example:
[Contractor Entry] Name=Mount MimeType=application/x-cd-image;application/x-raw-disk-image Exec=gnome-disk-image-mounter %f
Name: Text displayed in the right click context menu.
MimeType: Mimetype(s) of files it should be shown for.
Exec: Command to execute. More info.
pkexecto ask for root permissions. Example:
Exec=pkexec chmod +x %U