Table of Contents

Class ContextMenu

Namespace
ZeroInstall.DesktopIntegration.Unix
Assembly
ZeroInstall.DesktopIntegration.dll

Contains control logic for applying ContextMenu and ContextMenu on GNOME systems.

public static class ContextMenu
Inheritance
ContextMenu
Inherited Members

Methods

Apply(FeedTarget, ContextMenu, IIconStore, bool)

Adds a context menu entry to the current system.

public static void Apply(FeedTarget target, ContextMenu contextMenu, IIconStore iconStore, bool machineWide)

Parameters

target FeedTarget

The application being integrated.

contextMenu ContextMenu

The context menu entry to add.

iconStore IIconStore

Stores icon files downloaded from the web as local files.

machineWide bool

Add the context menu entry machine-wide instead of just for the current user.

Exceptions

OperationCanceledException

The user canceled the task.

IOException

A problem occurred while writing to the filesystem.

WebException

A problem occurred while downloading additional data (such as icons).

UnauthorizedAccessException

Write access to the filesystem is not permitted.

Remove(ContextMenu, bool)

Removes a context menu entry from the current system.

public static void Remove(ContextMenu contextMenu, bool machineWide)

Parameters

contextMenu ContextMenu

The context menu entry to remove.

machineWide bool

Remove the context menu entry machine-wide instead of just for the current user.

Exceptions

IOException

A problem occurred while writing to the filesystem.

UnauthorizedAccessException

Write access to the filesystem is not permitted.