Table of Contents

Class DesktopAppInfo

Namespace
Gio
Assembly
Gio-2.0.dll
public class DesktopAppInfo : Object, IObject, INotifyPropertyChanged, IDisposable, AppInfo, IHandle, GTypeProvider
Inheritance
DesktopAppInfo
Implements
Inherited Members

Constructors

DesktopAppInfo(bool, params ConstructArgument[])

protected DesktopAppInfo(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

DesktopAppInfo(IntPtr, bool)

protected DesktopAppInfo(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

FilenamePropertyDefinition

public static readonly Property<string?, DesktopAppInfo> FilenamePropertyDefinition

Field Value

Property<string, DesktopAppInfo>

Properties

Filename

public string? Filename { get; }

Property Value

string

Methods

AddSupportsType(string)

public bool AddSupportsType(string contentType)

Parameters

contentType string

Returns

bool

CanDelete()

[Version("2.20")]
public bool CanDelete()

Returns

bool

CanRemoveSupportsType()

public bool CanRemoveSupportsType()

Returns

bool

Delete()

[Version("2.20")]
public bool Delete()

Returns

bool

Dup()

public AppInfo Dup()

Returns

AppInfo

Equal(AppInfo)

public bool Equal(AppInfo appinfo2)

Parameters

appinfo2 AppInfo

Returns

bool

GetActionName(string)

[Version("2.38")]
public string GetActionName(string actionName)

Parameters

actionName string

Returns

string

GetBoolean(string)

[Version("2.36")]
public bool GetBoolean(string key)

Parameters

key string

Returns

bool

GetCategories()

public string? GetCategories()

Returns

string

GetCommandline()

[Version("2.20")]
public string? GetCommandline()

Returns

string

GetDescription()

public string? GetDescription()

Returns

string

GetDisplayName()

[Version("2.24")]
public string GetDisplayName()

Returns

string

GetExecutable()

public string GetExecutable()

Returns

string

GetFilename()

[Version("2.24")]
public string? GetFilename()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetGenericName()

public string? GetGenericName()

Returns

string

GetIcon()

public Icon? GetIcon()

Returns

Icon

GetId()

public string? GetId()

Returns

string

GetImplementations(string)

[Version("2.42")]
public static List GetImplementations(string @interface)

Parameters

interface string

Returns

List

GetIsHidden()

public bool GetIsHidden()

Returns

bool

GetKeywords()

[Version("2.32")]
public string[] GetKeywords()

Returns

string[]

GetLocaleString(string)

[Version("2.56")]
public string? GetLocaleString(string key)

Parameters

key string

Returns

string

GetName()

public string GetName()

Returns

string

GetNodisplay()

[Version("2.30")]
public bool GetNodisplay()

Returns

bool

GetShowIn(string?)

[Version("2.30")]
public bool GetShowIn(string? desktopEnv)

Parameters

desktopEnv string

Returns

bool

GetStartupWmClass()

[Version("2.34")]
public string? GetStartupWmClass()

Returns

string

GetString(string)

[Version("2.36")]
public string? GetString(string key)

Parameters

key string

Returns

string

GetStringList(string, out nuint)

[Version("2.60")]
public string[] GetStringList(string key, out nuint length)

Parameters

key string
length nuint

Returns

string[]

GetSupportedTypes()

[Version("2.34")]
public string[] GetSupportedTypes()

Returns

string[]

HasKey(string)

[Version("2.36")]
public bool HasKey(string key)

Parameters

key string

Returns

bool

Launch(List?, AppLaunchContext?)

public bool Launch(List? files, AppLaunchContext? context)

Parameters

files List
context AppLaunchContext

Returns

bool

LaunchAction(string, AppLaunchContext?)

[Version("2.38")]
public void LaunchAction(string actionName, AppLaunchContext? launchContext)

Parameters

actionName string
launchContext AppLaunchContext

LaunchUris(List?, AppLaunchContext?)

public bool LaunchUris(List? uris, AppLaunchContext? context)

Parameters

uris List
context AppLaunchContext

Returns

bool

LaunchUrisFinish(AsyncResult)

[Version("2.60")]
public bool LaunchUrisFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

ListActions()

[Version("2.38")]
public string[] ListActions()

Returns

string[]

New(string)

public static DesktopAppInfo? New(string desktopId)

Parameters

desktopId string

Returns

DesktopAppInfo

NewFromFilename(string)

public static DesktopAppInfo? NewFromFilename(string filename)

Parameters

filename string

Returns

DesktopAppInfo

NewFromKeyfile(KeyFile)

[Version("2.18")]
public static DesktopAppInfo? NewFromKeyfile(KeyFile keyFile)

Parameters

keyFile KeyFile

Returns

DesktopAppInfo

RemoveSupportsType(string)

public bool RemoveSupportsType(string contentType)

Parameters

contentType string

Returns

bool

SetAsDefaultForExtension(string)

public bool SetAsDefaultForExtension(string extension)

Parameters

extension string

Returns

bool

SetAsDefaultForType(string)

public bool SetAsDefaultForType(string contentType)

Parameters

contentType string

Returns

bool

SetAsLastUsedForType(string)

public bool SetAsLastUsedForType(string contentType)

Parameters

contentType string

Returns

bool

SetDesktopEnv(string)

public static void SetDesktopEnv(string desktopEnv)

Parameters

desktopEnv string

ShouldShow()

public bool ShouldShow()

Returns

bool

SupportsFiles()

public bool SupportsFiles()

Returns

bool

SupportsUris()

public bool SupportsUris()

Returns

bool