summaryrefslogtreecommitdiff
path: root/plugins/hostname.c
Commit message (Collapse)AuthorAgeFilesLines
* hostname: Fallback to transient hostnameBastien Nocera2022-11-161-2/+55
| | | | | | | | | | | | | | | | After pretty hostname, and static hostname, also support transient hostname as a last resort before 'BlueZ X.XX'. This happens on Fedora's Workstation installation as it calls "hostnamectl set-hostname" on startup. In Fedora Silverblue, the default hostname is set as fedora in /etc/os-release. In both cases, we should fall back to that transient hostname, as bad as it could be. Note that the transient hostname needs to be monitored through the kernel directly, as explained in: https://www.freedesktop.org/software/systemd/man/org.freedesktop.hostname1.html
* hostname: Add '' around printed stringsBastien Nocera2022-11-161-3/+3
| | | | Otherwise we can't see whether the string is nul, or empty.
* plugin: Fix memory leaksSteve Grubb2021-05-141-2/+1
| | | | | g_file_get_contents allocates memory. It needs to be freed on any function exit.
* plugins: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- GPL-2.0-or-later : 7 License: GPL-2.0-or-later plugins/autopair.c plugins/hostname.c plugins/neard.c plugins/policy.c plugins/sixaxis.c plugins/wiimote.c plugins/external-dummy.c
* plugins: Fix local libbluetooth includes orderMarcel Holtmann2015-02-281-1/+6
|
* plugins: Use full include path for header filesMarcel Holtmann2014-01-251-4/+4
|
* hostname: Fallback to static hostname if pretty hostname is not setSzymon Janc2013-02-151-10/+44
| | | | | | If pretty hostname is not set fallback to static hostname (if it is set). If static or pretty hostname is not set appropriate properties are empty strings not NULLs. This behaviour is recomended by hostnamed.
* hostname: Fix setting adapter name to empty stringSzymon Janc2013-02-151-0/+6
| | | | | If pretty hostname is not set empty string is received. Don't update adapters' names is such case.
* plugins: Use btd_adapter_get_index instead of adapter_get_dev_idMarcel Holtmann2013-01-051-2/+3
|
* plugins: Use btd_adapter_get_default instead of adapter_get_defaultMarcel Holtmann2013-01-051-5/+1
|
* hostname: Prefer adapter_get_default() over manager functionJohan Hedberg2013-01-031-2/+1
|
* hostname: Prefer adapter_foreach over manager functionJohan Hedberg2013-01-031-2/+2
|
* hostname: No need to restrict adapter name changes anymoreMarcel Holtmann2012-12-291-2/+0
|
* hostname: Add fallback to DMI information for class of deviceMarcel Holtmann2012-12-291-0/+57
|
* hostname: Use numbered pretty hostnames for multiple adaptersMarcel Holtmann2012-12-291-3/+21
|
* plugins: Add support for systemd's hostname daemonMarcel Holtmann2012-12-291-0/+214