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
FeedTargetThe application being integrated.
contextMenu
ContextMenuThe context menu entry to add.
iconStore
IIconStoreStores icon files downloaded from the web as local files.
machineWide
boolAdd 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
ContextMenuThe context menu entry to remove.
machineWide
boolRemove 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.