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
target
FeedTargetThe application being integrated.
command
stringThe command within
target
the alias shall point to; can benull
.aliasName
stringThe name of the alias to be created.
iconStore
IIconStoreStores icon files downloaded from the web as local files.
machineWide
boolCreate 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
aliasName
stringThe name of the alias to be removed.
machineWide
boolThe 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.