Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.Unix.AppAlias Class Reference

Contains control logic for applying AccessPoints.AppAlias on Unix systems. More...

Static Public Member Functions

static void Create (FeedTarget target, string? command, string aliasName, IIconStore iconStore, bool machineWide)
 Creates an application alias in the current system. More...
 
static void Remove (string aliasName, bool machineWide)
 Removes an application alias from the current system. More...
 

Detailed Description

Contains control logic for applying AccessPoints.AppAlias on Unix systems.

Member Function Documentation

◆ Create()

static void ZeroInstall.DesktopIntegration.Unix.AppAlias.Create ( FeedTarget  target,
string?  command,
string  aliasName,
IIconStore  iconStore,
bool  machineWide 
)
inlinestatic

Creates an application alias in the current system.

Parameters
targetThe application being integrated.
commandThe command within target the alias shall point to; can be null.
aliasNameThe name of the alias to be created.
iconStoreStores icon files downloaded from the web as local files.
machineWideCreate the alias machine-wide instead of just for the current user.
Exceptions
OperationCanceledExceptionThe user canceled the task.
IOExceptionA problem occurred while writing to the filesystem.
WebExceptionA problem occurred while downloading additional data (such as icons).
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

◆ Remove()

static void ZeroInstall.DesktopIntegration.Unix.AppAlias.Remove ( string  aliasName,
bool  machineWide 
)
inlinestatic

Removes an application alias from the current system.

Parameters
aliasNameThe name of the alias to be removed.
machineWideThe alias was created machine-wide instead of just for the current user.
Exceptions
IOExceptionA problem occurred while writing to the filesystem.
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

The documentation for this class was generated from the following file: