GLib.AppInfo – gio-2.0 Reference Manual
Packages
gio-2.0
GLib
AppInfo
create_from_commandline
get_all
get_all_for_type
get_default_for_type
get_default_for_uri_scheme
get_fallback_for_type
get_recommended_for_type
launch_default_for_uri
launch_default_for_uri_async
reset_type_associations
@delete
add_supports_type
can_delete
can_remove_supports_type
dup
equal
get_commandline
get_description
get_display_name
get_executable
get_icon
get_id
get_name
get_supported_types
launch
launch_uris
remove_supports_type
set_as_default_for_extension
set_as_default_for_type
set_as_last_used_for_type
should_show
supports_files
supports_uris
AppInfo
Object Hierarchy:
Description:
public
interface
AppInfo
:
Object
Namespace:
GLib
Package:
gio-2.0
Content:
Static methods:
public
static
AppInfo
create_from_commandline
(
string
commandline,
string
? application_name,
AppInfoCreateFlags
flags)
throws
Error
public
static
List
<
AppInfo
>
get_all
()
public
static
List
<
AppInfo
>
get_all_for_type
(
string
content_type)
public
static
AppInfo
get_default_for_type
(
string
content_type,
bool
must_support_uris)
public
static
AppInfo
get_default_for_uri_scheme
(
string
uri_scheme)
public
static
List
<
AppInfo
>
get_fallback_for_type
(
string
content_type)
public
static
List
<
AppInfo
>
get_recommended_for_type
(
string
content_type)
public
static
bool
launch_default_for_uri
(
string
uri,
AppLaunchContext
? launch_context)
throws
Error
public
static
async
bool
launch_default_for_uri_async
(
string
uri,
AppLaunchContext
launch_context,
Cancellable
? cancellable =
null
)
throws
Error
public
static
void
reset_type_associations
(
string
content_type)
Methods:
public
abstract
bool
add_supports_type
(
string
content_type)
throws
Error
public
abstract
bool
can_delete
()
public
abstract
bool
can_remove_supports_type
()
public
abstract
bool
@delete
()
public
abstract
AppInfo
dup
()
public
abstract
bool
equal
(
AppInfo
appinfo2)
public
abstract
unowned
string
get_commandline
()
public
abstract
unowned
string
get_description
()
public
abstract
unowned
string
get_display_name
()
public
abstract
unowned
string
get_executable
()
public
abstract
weak
Icon
get_icon
()
public
abstract
unowned
string
get_id
()
public
abstract
unowned
string
get_name
()
public
abstract
unowned
string
[]
get_supported_types
()
public
abstract
bool
launch
(
List
<
File
>? files,
AppLaunchContext
? launch_context)
throws
Error
public
abstract
bool
launch_uris
(
List
<
string
>? uris,
AppLaunchContext
? launch_context)
throws
Error
public
abstract
bool
remove_supports_type
(
string
content_type)
throws
Error
public
abstract
bool
set_as_default_for_extension
(
string
extension)
throws
Error
public
abstract
bool
set_as_default_for_type
(
string
content_type)
throws
Error
public
abstract
bool
set_as_last_used_for_type
(
string
content_type)
throws
Error
public
abstract
bool
should_show
()
public
abstract
bool
supports_files
()
public
abstract
bool
supports_uris
()
Inherited Members:
All known members inherited from class GLib.Object
interface_find_property
interface_install_property
interface_list_properties
@new
new_valist
newv
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
@get
get_class
get_data
get_property
get_qdata
get_type
is_floating
notify_property
@ref
ref_sink
replace_data
replace_qdata
remove_toggle_ref
remove_weak_pointer
@set
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
notify
ref_count