Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.Unix.ContextMenu Class Reference

Contains control logic for applying Model.Capabilities.ContextMenu and AccessPoints.ContextMenu on GNOME systems. More...

Static Public Member Functions

static void Apply (FeedTarget target, Model.Capabilities.ContextMenu contextMenu, IIconStore iconStore, bool machineWide)
 Adds a context menu entry to the current system. More...
 
static void Remove (Model.Capabilities.ContextMenu contextMenu, bool machineWide)
 Removes a context menu entry from the current system. More...
 

Detailed Description

Contains control logic for applying Model.Capabilities.ContextMenu and AccessPoints.ContextMenu on GNOME systems.

Member Function Documentation

◆ Apply()

static void ZeroInstall.DesktopIntegration.Unix.ContextMenu.Apply ( FeedTarget  target,
Model.Capabilities.ContextMenu  contextMenu,
IIconStore  iconStore,
bool  machineWide 
)
inlinestatic

Adds a context menu entry to the current system.

Parameters
targetThe application being integrated.
contextMenuThe context menu entry to add.
machineWideAdd the context menu entry machine-wide instead of just for the current user.
iconStoreStores icon files downloaded from the web as local files.
Exceptions
OperationCanceledExceptionThe user canceled the task.
IOExceptionA problem occurred while writing to the filesystem.
WebExceptionA problem occurred while downloading additional data (such as icons).
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

◆ Remove()

static void ZeroInstall.DesktopIntegration.Unix.ContextMenu.Remove ( Model.Capabilities.ContextMenu  contextMenu,
bool  machineWide 
)
inlinestatic

Removes a context menu entry from the current system.

Parameters
contextMenuThe context menu entry to remove.
machineWideRemove the context menu entry machine-wide instead of just for the current user.
Exceptions
IOExceptionA problem occurred while writing to the filesystem.
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

The documentation for this class was generated from the following file: