Class DesktopAppInfo
public class DesktopAppInfo
- Inheritance
-
DesktopAppInfo
- Inherited Members
Methods
GetActionName(IntPtr, NonNullableUtf8StringHandle)
Calls native method g_desktop_app_info_get_action_name. Version: 2.38
[Version("2.38")]
public static extern NonNullableUtf8StringOwnedHandle GetActionName(IntPtr info, NonNullableUtf8StringHandle actionName)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
actionName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- NonNullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: False
GetBoolean(IntPtr, NonNullableUtf8StringHandle)
Calls native method g_desktop_app_info_get_boolean. Version: 2.36
[Version("2.36")]
public static extern bool GetBoolean(IntPtr info, NonNullableUtf8StringHandle key)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetCategories(IntPtr)
Calls native method g_desktop_app_info_get_categories.
public static extern NullableUtf8StringUnownedHandle GetCategories(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetFilename(IntPtr)
Calls native method g_desktop_app_info_get_filename. Version: 2.24
[Version("2.24")]
public static extern NullablePlatformStringUnownedHandle GetFilename(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- NullablePlatformStringUnownedHandle
Transfer ownership: None Nullable: True
GetGType()
Calls native function g_desktop_app_info_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetGenericName(IntPtr)
Calls native method g_desktop_app_info_get_generic_name.
public static extern NullableUtf8StringUnownedHandle GetGenericName(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetImplementations(NonNullableUtf8StringHandle)
Calls native function g_desktop_app_info_get_implementations. Version: 2.42
[Version("2.42")]
public static extern ListOwnedHandle GetImplementations(NonNullableUtf8StringHandle @interface)
Parameters
interface
NonNullableUtf8StringHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
GetIsHidden(IntPtr)
Calls native method g_desktop_app_info_get_is_hidden.
public static extern bool GetIsHidden(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetKeywords(IntPtr)
Calls native method g_desktop_app_info_get_keywords. Version: 2.32
[Version("2.32")]
public static extern Utf8StringArrayNullTerminatedUnownedHandle GetKeywords(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- Utf8StringArrayNullTerminatedUnownedHandle
Transfer ownership: None Nullable: False
GetLocaleString(IntPtr, NonNullableUtf8StringHandle)
Calls native method g_desktop_app_info_get_locale_string. Version: 2.56
[Version("2.56")]
public static extern NullableUtf8StringOwnedHandle GetLocaleString(IntPtr info, NonNullableUtf8StringHandle key)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
GetNodisplay(IntPtr)
Calls native method g_desktop_app_info_get_nodisplay. Version: 2.30
[Version("2.30")]
public static extern bool GetNodisplay(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetShowIn(IntPtr, NullableUtf8StringHandle)
Calls native method g_desktop_app_info_get_show_in. Version: 2.30
[Version("2.30")]
public static extern bool GetShowIn(IntPtr info, NullableUtf8StringHandle desktopEnv)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
desktopEnv
NullableUtf8StringHandleTransfer ownership: None Nullable: True
Returns
- bool
Transfer ownership: None Nullable: False
GetStartupWmClass(IntPtr)
Calls native method g_desktop_app_info_get_startup_wm_class. Version: 2.34
[Version("2.34")]
public static extern NullableUtf8StringUnownedHandle GetStartupWmClass(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringUnownedHandle
Transfer ownership: None Nullable: True
GetString(IntPtr, NonNullableUtf8StringHandle)
Calls native method g_desktop_app_info_get_string. Version: 2.36
[Version("2.36")]
public static extern NullableUtf8StringOwnedHandle GetString(IntPtr info, NonNullableUtf8StringHandle key)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
GetStringList(IntPtr, NonNullableUtf8StringHandle, out nuint)
Calls native method g_desktop_app_info_get_string_list. Version: 2.60
[Version("2.60")]
public static extern Utf8StringArrayNullTerminatedOwnedHandle GetStringList(IntPtr info, NonNullableUtf8StringHandle key, out nuint length)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
length
nuintTransfer ownership: Full Nullable: False
Returns
- Utf8StringArrayNullTerminatedOwnedHandle
Transfer ownership: Full Nullable: False
HasKey(IntPtr, NonNullableUtf8StringHandle)
Calls native method g_desktop_app_info_has_key. Version: 2.36
[Version("2.36")]
public static extern bool HasKey(IntPtr info, NonNullableUtf8StringHandle key)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
key
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
LaunchAction(IntPtr, NonNullableUtf8StringHandle, IntPtr)
Calls native method g_desktop_app_info_launch_action. Version: 2.38
[Version("2.38")]
public static extern void LaunchAction(IntPtr info, NonNullableUtf8StringHandle actionName, IntPtr launchContext)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
actionName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
launchContext
IntPtrTransfer ownership: None Nullable: True
LaunchUrisAsManager(IntPtr, ListHandle, IntPtr, SpawnFlags, SpawnChildSetupFunc, IntPtr, DesktopAppLaunchCallback, IntPtr, out ErrorOwnedHandle)
Calls native method g_desktop_app_info_launch_uris_as_manager.
public static extern bool LaunchUrisAsManager(IntPtr appinfo, ListHandle uris, IntPtr launchContext, SpawnFlags spawnFlags, SpawnChildSetupFunc userSetup, IntPtr userSetupData, DesktopAppLaunchCallback pidCallback, IntPtr pidCallbackData, out ErrorOwnedHandle error)
Parameters
appinfo
IntPtrTransfer ownership: None Nullable: False
uris
ListHandleTransfer ownership: None Nullable: False
launchContext
IntPtrTransfer ownership: None Nullable: True
spawnFlags
SpawnFlagsTransfer ownership: None Nullable: False
userSetup
SpawnChildSetupFuncTransfer ownership: None Nullable: True
userSetupData
IntPtrTransfer ownership: None Nullable: True
pidCallback
DesktopAppLaunchCallbackTransfer ownership: None Nullable: True
pidCallbackData
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
LaunchUrisAsManagerWithFds(IntPtr, ListHandle, IntPtr, SpawnFlags, SpawnChildSetupFunc, IntPtr, DesktopAppLaunchCallback, IntPtr, int, int, int, out ErrorOwnedHandle)
Calls native method g_desktop_app_info_launch_uris_as_manager_with_fds. Version: 2.58
[Version("2.58")]
public static extern bool LaunchUrisAsManagerWithFds(IntPtr appinfo, ListHandle uris, IntPtr launchContext, SpawnFlags spawnFlags, SpawnChildSetupFunc userSetup, IntPtr userSetupData, DesktopAppLaunchCallback pidCallback, IntPtr pidCallbackData, int stdinFd, int stdoutFd, int stderrFd, out ErrorOwnedHandle error)
Parameters
appinfo
IntPtrTransfer ownership: None Nullable: False
uris
ListHandleTransfer ownership: None Nullable: False
launchContext
IntPtrTransfer ownership: None Nullable: True
spawnFlags
SpawnFlagsTransfer ownership: None Nullable: False
userSetup
SpawnChildSetupFuncTransfer ownership: None Nullable: True
userSetupData
IntPtrTransfer ownership: None Nullable: True
pidCallback
DesktopAppLaunchCallbackTransfer ownership: None Nullable: True
pidCallbackData
IntPtrTransfer ownership: None Nullable: True
stdinFd
intTransfer ownership: None Nullable: False
stdoutFd
intTransfer ownership: None Nullable: False
stderrFd
intTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- bool
Transfer ownership: None Nullable: False
ListActions(IntPtr)
Calls native method g_desktop_app_info_list_actions. Version: 2.38
[Version("2.38")]
public static extern Utf8StringArrayNullTerminatedUnownedHandle ListActions(IntPtr info)
Parameters
info
IntPtrTransfer ownership: None Nullable: False
Returns
- Utf8StringArrayNullTerminatedUnownedHandle
Transfer ownership: None Nullable: False
New(NonNullableUtf8StringHandle)
Calls native constructor g_desktop_app_info_new.
public static extern IntPtr New(NonNullableUtf8StringHandle desktopId)
Parameters
desktopId
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: True
NewFromFilename(NonNullablePlatformStringHandle)
Calls native constructor g_desktop_app_info_new_from_filename.
public static extern IntPtr NewFromFilename(NonNullablePlatformStringHandle filename)
Parameters
filename
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: True
NewFromKeyfile(KeyFileHandle)
Calls native constructor g_desktop_app_info_new_from_keyfile. Version: 2.18
[Version("2.18")]
public static extern IntPtr NewFromKeyfile(KeyFileHandle keyFile)
Parameters
keyFile
KeyFileHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: True
SetDesktopEnv(NonNullableUtf8StringHandle)
Calls native function g_desktop_app_info_set_desktop_env.
public static extern void SetDesktopEnv(NonNullableUtf8StringHandle desktopEnv)
Parameters
desktopEnv
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False