Class AppAlias
- Namespace
- ZeroInstall.DesktopIntegration.Unix
- Assembly
- ZeroInstall.DesktopIntegration.dll
Contains control logic for applying AppAlias on Unix systems.
public static class AppAlias
- Inheritance
-
AppAlias
- Inherited Members
Methods
Create(FeedTarget, string?, string, IIconStore, bool)
Creates an application alias in the current system.
public static void Create(FeedTarget target, string? command, string aliasName, IIconStore iconStore, bool machineWide)
Parameters
targetFeedTargetThe application being integrated.
commandstringThe command within
targetthe alias shall point to; can benull.aliasNamestringThe name of the alias to be created.
iconStoreIIconStoreStores icon files downloaded from the web as local files.
machineWideboolCreate the alias 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(string, bool)
Removes an application alias from the current system.
public static void Remove(string aliasName, bool machineWide)
Parameters
aliasNamestringThe name of the alias to be removed.
machineWideboolThe alias was created 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.