| xdg-hostname Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Implemented Interfaces | Properties | Signals | ||||
org.freedesktop.Hostname1org.freedesktop.Hostname1 — Hostname1 interface |
SetDisplayHostname (in 's' display_hostname) SetHostname (in 's' hostname) SetIconName (in 's' icon_name) SetUseTransientData (in 'b' use_transient_data) RegisterTransientDataProvider (out 's' cookie) UnregisterTransientDataProvider (in 's' cookie) SetTransientDisplayHostname (in 's' cookie, in 's' display_hostname) SetTransientHostname (in 's' cookie, in 's' hostname) SetTransientIconName (in 's' cookie, in 's' icon_name)
Objects implementing org.freedesktop.Hostname1 also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
'display-hostname' read 's' 'hostname' read 's' 'icon-name' read 's' 'configured-display-hostname' read 's' 'configured-hostname' read 's' 'configured-icon-name' read 's' 'use-transient-data' read 'b' 'transient-display-hostname' read 's' 'transient-hostname' read 's' 'transient-icon-name' read 's'
This interface is usually implemented by the object
/org/freedesktop/hostname1
exported by a system D-Bus service with the well-known name
org.freedesktop.Hostname1.
Sets the
configured-display-hostname
property.
Typically only user interface applications will call this method in response to an user initiated action.
|
The value for the display host name.
The passed in value is subject to the same format and limitations as the
display-hostname
property.
|
|
if the caller is not authorized |
|
if invalid data is passed |
|
if the operation failed |
Sets the
configured-hostname
property.
Typically only user interface applications will call this method in response to an user initiated action.
|
The value for the host name.
The passed in value is subject to the same format and limitations as the
hostname
property.
|
|
if the caller is not authorized |
|
if invalid data is passed |
|
if the operation failed |
Sets the
configured-icon-name
property.
Typically only user interface applications will call this method in response to an user initiated action.
|
The name for the host icon.
The passed in value is subject to the same format and limitations as the
icon-name
property.
|
|
if the caller is not authorized |
|
if invalid data is passed |
|
if the operation failed |
Sets the
use-transient-data
property.
Typically only user interface applications will call this method in response to an user initiated action.
|
Whether transient data should be used if available. See the
use-transient
property for details.
|
|
if the caller is not authorized |
|
if the operation failed |
Registers a provider for transient hostname data. A cookie
is returned that the provider can use for invoking methods like
SetTransientHostname()
to set transient data. The data is kept in memory and will be purged
when the provider calls
UnregisterTransientDataProvider()
or disconnects from the system message bus.
Only a single client can provide transient hostname data at a time.
Typically only network configuration tools will need to
call this method.
|
A cookie to be used for providing transient data via methods such as
SetTransientHostname()
and to unregister as a transient data provider via the
UnregisterTransientDataProvider()
method.
|
|
if another client has already registered for providing transient data |
|
if the operation failed |
Unregisters a transient data provider previously registered with
RegisterTransientDataProvider().
|
A cookie obtained from the
RegisterTransientDataProvider()
method.
|
|
if an invalid cookie is passed |
|
if the operation failed |
Sets the
transient-display-hostname
property.
Typically only network configuration tools will need to
call this method.
|
A cookie obtained from the
RegisterTransientDataProvider()
method.
|
|
The value for the display host name. Any valid UTF-8 string can be used. |
|
if invalid data is passed |
|
if the operation failed |
Sets the
transient-hostname
property.
Typically only network configuration tools will need to
call this method.
|
A cookie obtained from the
RegisterTransientDataProvider()
method.
|
|
The value for the host name. Can't be an empty string. Must conform to
limitations and constraints as described for the
hostname
property.
|
|
if invalid data is passed |
|
if the operation failed |
Sets the
transient-icon-name
property.
Typically only network configuration tools will need to
call this method.
|
A cookie obtained from the
RegisterTransientDataProvider()
method.
|
|
The name for the host icon. Must be an empty string to unset the icon, otherwise a themed icon name conforming to the freedesktop.org Icon Theme Specification and Icon Naming Specification specifications. |
The display hostname of the system. If empty, it means no display hostname has been chosen for the system.
The hostname of the system. Is never the empty string. Conforms to section 3.5 of RFC 1034 with the hostname being a label: 7 bit ASCII without special characters, whitespace or dots.
The name icon to use for the system. Is either an empty string if no icon is set, otherwise a themed icon name conforming to the freedesktop.org Icon Theme Specification and Icon Naming Specification specifications.
The configured display hostname of the system. This is a user preference and can be changed with the
SetDisplayHostname()
method.
This property is subject to the same format and limitations as the
display-hostname
property.
The configured hostname of the system. This is a user preference and can be changed with the
SetHostname()
method.
This property is subject to the same format and limitations as the
hostname
property.
The configured icon name of the system. This is a user preference and can be changed with the
SetIconName()
method.
This property is subject to the same format and limitations as the
icon-name
property.
If FALSE, then transient data will be ignored when
computing the value of the
hostname,
display-hostname and
icon-name
properties.
This is a user preference and can be changed with the
SetUseTransientData()
method.
If not blank, the display hostname currently provided by a registered transient data provider.
This property is subject to the same format and limitations as the
display-hostname
property.
If not blank, the hostname currently provided by a registered transient data provider.
This property is subject to the same format and limitations as the
hostname
property.
If not blank, the icon name currently provided by a registered transient data provider.
This property is subject to the same format and limitations as the
icon-name
property.