GNOME Bugzilla – Bug 650044
info: Implement setting of "PrettyHostname" property
Last modified: 2011-05-13 15:09:14 UTC
First pass. Missing: - updating the static hostname when the pretty hostname changes - fixing the padding when a button is shown (eg. the user is an admin)
Created attachment 187710 [details] [review] info: Implement setting of "PrettyHostname" property This property can be used to name services running on the machine such as media sharing, device sharing, or externally visible services such as the Bluetooth name.
The changes require this change in systemd: http://cgit.freedesktop.org/systemd/commit/?id=88a07670cfa974a605c7c7b520b8a3135fce37f9 You can test this by adding "org.freedesktop.hostname1.set-static-hostname" to your /var/lib/polkit-1/localauthority/10-vendor.d/10-desktop-policy.pkla (or "org.freedesktop.hostname1.set-machine-info" with an older systemd).
We'd also need some design for how/where to show the "static hostname" when changed. Maybe we should have this code in the network panel instead?
Created attachment 187711 [details] pretty hostname Pretty hostname on OSX
Created attachment 187712 [details] additional hostname settings From OSX as well.
Discussed with lapo and lennart. We won't be showing the "hostname" of the machine for now. If we do end up showing it, it would probably be in the network panel.
Created attachment 187722 [details] aligned items Items aligned by using the same "editable entry" for all the items. Too much vertical space used (especially when the dialogue was already too big for netbooks)
Created attachment 187723 [details] not aligned And not aligned. The device name is the only one with an "editable entry" being used.
commit a089d7e710e652693898cb17cde29f4eb266e994 Author: Bastien Nocera <hadess@hadess.net> Date: Thu May 12 14:46:50 2011 +0100 info: Implement setting of "PrettyHostname" This property can be used to name services running on the machine such as media sharing, device sharing, or externally visible services such as the Bluetooth name. We don't set the statis hostname yet though, this will need to be done to follow the recommendations from systemd. https://bugzilla.gnome.org/show_bug.cgi?id=650044
commit 018848689070c3dae16eb4d6ee6046764be32129 Author: Bastien Nocera <hadess@hadess.net> Date: Fri May 13 16:07:55 2011 +0100 info: Set the StaticHostname when changing the PrettyHostname https://bugzilla.gnome.org/show_bug.cgi?id=650044 commit a2885a56d41f5f190bc3d5ad1dab8e43088457a9 Author: Bastien Nocera <hadess@hadess.net> Date: Fri May 13 15:48:45 2011 +0100 info: Add helper for pretty hostname to hostname So that we can set the static hostname depending on the value of the pretty hostname.