Bug#693071: gnome-control-center/exp: cannot set hostname under systemd

Simon McVittie smcv at debian.org
Mon Nov 12 17:46:25 UTC 2012


Package: gnome-control-center
Version: 1:3.6.2-1
Severity: normal

When running under systemd, the machine's hostname can be seen on the
Details tab. However, it cannot be changed.
According to https://bugzilla.gnome.org/show_bug.cgi?id=679281 the hostname
is only editable if policykit reports that the set-hostname PK action
is allowed without prompting.

The solution chosen upstream was to install
panels/common/gnome-control-center.rules, which allows setting the hostname
without prompting if the user is in the wheel group. (Our equivalent would
be the sudo group.)

This comes up as this warning from list-missing during build:

-./usr/share/polkit-1/rules.d/gnome-control-center.rules

Possible solutions include:

* do what upstream did, patching the file to require sudo instead of wheel
* add some way to issue a PK prompt, and deliberately omit the .rules file
* accept that the hostname cannot be changed in this way, and deliberately
  omit the .rules file

Ideally, "deliberately omit the .rules file" means "delete it in debian/rules"
(which shuts up the warning, and acts as documentation that it is deliberate).

I haven't installed panels/common/gnome-control-center.rules, and haven't
added a makefile rule to delete the file either, because I didn't
want to make this policy decision without consulting the rest of the team.

    S



More information about the pkg-gnome-maintainers mailing list