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
targetFeedTargetThe application being integrated.
contextMenuContextMenuThe context menu entry to add.
iconStoreIIconStoreStores icon files downloaded from the web as local files.
machineWideboolAdd 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
contextMenuContextMenuThe context menu entry to remove.
machineWideboolRemove 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.