DesktopApplicationInfo record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopApplicationInfo : IEquatable<DesktopApplicationInfo>

Inherits or implements IEquatable.

An installed application that can open content.

Parameters

Id

The platform's identifier of the application.

Name

The application's name in the user's language.

Exceptions

ArgumentException

An identifier or name is empty or contains NUL.

Remarks

DesktopApplicationInfo.Id identifies the application to IDesktopApplications. On Linux it is the desktop file ID, such as org.gnome.TextEditor.desktop; on Windows the path of its executable or, for a packaged application, its AppUserModelID; on macOS its bundle identifier, such as com.apple.TextEdit.

Constructors

DesktopApplicationInfo

public DesktopApplicationInfo(string Id, string Name)

An installed application that can open content.

Parameters

Id

The platform's identifier of the application.

Name

The application's name in the user's language.

Exceptions

ArgumentException

An identifier or name is empty or contains NUL.

Remarks

DesktopApplicationInfo.Id identifies the application to IDesktopApplications. On Linux it is the desktop file ID, such as org.gnome.TextEditor.desktop; on Windows the path of its executable or, for a packaged application, its AppUserModelID; on macOS its bundle identifier, such as com.apple.TextEdit.

Properties

ContentTypes

public ImmutableArray<string> ContentTypes { get; init; }

The content types the application declares it opens.

Description

public string? Description { get; init; }

A short description in the user's language, when the application has one.

IconName

public string? IconName { get; init; }

The name of the application's icon in the desktop's icon theme, or an absolute icon path on Linux.

Id

public string Id { get; init; }

The platform's identifier of the application.

IsHidden

public bool IsHidden { get; init; }

Whether the desktop hides the application from application lists, for example a handler that only opens what other applications pass it. A hidden application can still be a content type's handler.

Name

public string Name { get; init; }

The application's name in the user's language.