App
Info
Iface
constructor
g_
iface
name
add_
supports_
type
can_
delete
can_
remove_
supports_
type
do_
delete
dup
equal
get_
commandline
get_
description
get_
display_
name
get_
executable
get_
icon
get_
id
get_
name
get_
supported_
types
launch
launch_
uris
launch_
uris_
async
launch_
uris_
finish
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
GJS API Reference
Gio-2.0
Gio
AppInfoIface
Class AppInfoIface
Application Information interface, for operating system portability.
record
Hierarchy
AppInfoIface
Index
Constructors
constructor
Properties
g_
iface
name
Methods
add_
supports_
type
can_
delete
can_
remove_
supports_
type
do_
delete
dup
equal
get_
commandline
get_
description
get_
display_
name
get_
executable
get_
icon
get_
id
get_
name
get_
supported_
types
launch
launch_
uris
launch_
uris_
async
launch_
uris_
finish
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
Constructors
constructor
new
App
Info
Iface
(
)
:
AppInfoIface
Returns
AppInfoIface
Properties
g_
iface
g_
iface
:
TypeInterface
The parent interface.
field
Static
name
name
:
string
Methods
add_
supports_
type
add_
supports_
type
(
appinfo
:
AppInfo
, content_type
:
string
)
:
boolean
Parameters
appinfo:
AppInfo
content_type:
string
Returns
boolean
can_
delete
can_
delete
(
appinfo
:
AppInfo
)
:
boolean
Parameters
appinfo:
AppInfo
Returns
boolean
can_
remove_
supports_
type
can_
remove_
supports_
type
(
appinfo
:
AppInfo
)
:
boolean
Parameters
appinfo:
AppInfo
Returns
boolean
do_
delete
do_
delete
(
appinfo
:
AppInfo
)
:
boolean
Parameters
appinfo:
AppInfo
Returns
boolean
dup
dup
(
appinfo
:
AppInfo
)
:
AppInfo
Parameters
appinfo:
AppInfo
Returns
AppInfo
equal
equal
(
appinfo1
:
AppInfo
, appinfo2
:
AppInfo
)
:
boolean
Parameters
appinfo1:
AppInfo
appinfo2:
AppInfo
Returns
boolean
get_
commandline
get_
commandline
(
appinfo
:
AppInfo
)
:
string
Parameters
appinfo:
AppInfo
Returns
string
get_
description
get_
description
(
appinfo
:
AppInfo
)
:
string
Parameters
appinfo:
AppInfo
Returns
string
get_
display_
name
get_
display_
name
(
appinfo
:
AppInfo
)
:
string
Parameters
appinfo:
AppInfo
Returns
string
get_
executable
get_
executable
(
appinfo
:
AppInfo
)
:
string
Parameters
appinfo:
AppInfo
Returns
string
get_
icon
get_
icon
(
appinfo
:
AppInfo
)
:
Gio
.
Icon
Parameters
appinfo:
AppInfo
Returns
Gio
.
Icon
get_
id
get_
id
(
appinfo
:
AppInfo
)
:
string
Parameters
appinfo:
AppInfo
Returns
string
get_
name
get_
name
(
appinfo
:
AppInfo
)
:
string
Parameters
appinfo:
AppInfo
Returns
string
get_
supported_
types
get_
supported_
types
(
appinfo
:
AppInfo
)
:
string
[]
Parameters
appinfo:
AppInfo
Returns
string
[]
launch
launch
(
appinfo
:
AppInfo
, files
:
Gio
.
File
[]
, context
:
Gio
.
AppLaunchContext
)
:
boolean
Parameters
appinfo:
AppInfo
files:
Gio
.
File
[]
context:
Gio
.
AppLaunchContext
Returns
boolean
launch_
uris
launch_
uris
(
appinfo
:
AppInfo
, uris
:
string
[]
, context
:
Gio
.
AppLaunchContext
)
:
boolean
Parameters
appinfo:
AppInfo
uris:
string
[]
context:
Gio
.
AppLaunchContext
Returns
boolean
launch_
uris_
async
launch_
uris_
async
(
appinfo
:
AppInfo
, uris
:
string
[]
, context
:
Gio
.
AppLaunchContext
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
appinfo:
AppInfo
uris:
string
[]
context:
Gio
.
AppLaunchContext
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
launch_
uris_
finish
launch_
uris_
finish
(
appinfo
:
AppInfo
, result
:
AsyncResult
)
:
boolean
Parameters
appinfo:
AppInfo
result:
AsyncResult
Returns
boolean
remove_
supports_
type
remove_
supports_
type
(
appinfo
:
AppInfo
, content_type
:
string
)
:
boolean
Parameters
appinfo:
AppInfo
content_type:
string
Returns
boolean
set_
as_
default_
for_
extension
set_
as_
default_
for_
extension
(
appinfo
:
AppInfo
, extension
:
string
)
:
boolean
Parameters
appinfo:
AppInfo
extension:
string
Returns
boolean
set_
as_
default_
for_
type
set_
as_
default_
for_
type
(
appinfo
:
AppInfo
, content_type
:
string
)
:
boolean
Parameters
appinfo:
AppInfo
content_type:
string
Returns
boolean
set_
as_
last_
used_
for_
type
set_
as_
last_
used_
for_
type
(
appinfo
:
AppInfo
, content_type
:
string
)
:
boolean
Parameters
appinfo:
AppInfo
content_type:
string
Returns
boolean
should_
show
should_
show
(
appinfo
:
AppInfo
)
:
boolean
Parameters
appinfo:
AppInfo
Returns
boolean
supports_
files
supports_
files
(
appinfo
:
AppInfo
)
:
boolean
Parameters
appinfo:
AppInfo
Returns
boolean
supports_
uris
supports_
uris
(
appinfo
:
AppInfo
)
:
boolean
Parameters
appinfo:
AppInfo
Returns
boolean
App
Info
Iface
constructor
g_
iface
name
add_
supports_
type
can_
delete
can_
remove_
supports_
type
do_
delete
dup
equal
get_
commandline
get_
description
get_
display_
name
get_
executable
get_
icon
get_
id
get_
name
get_
supported_
types
launch
launch_
uris
launch_
uris_
async
launch_
uris_
finish
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
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHaW9fMl8wLkdpby5BcHBJbmZvSWZhY2UuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWt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