[Bug 858922] New: Cannot set hostname in gnome-control-center
https://bugzilla.novell.com/show_bug.cgi?id=858922 https://bugzilla.novell.com/show_bug.cgi?id=858922#c0 Summary: Cannot set hostname in gnome-control-center Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mcatanzaro@gnome.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Intel Mac OS X) AppleWebKit/538.1 (KHTML, like Gecko) Safari/538.1 Epiphany/3.10.3 On a fresh install of openSUSE 13.1 or 12.3, I cannot set my hostname in gnome-control-center. Manually changing my hostname with hostnamectl works fine, after which the hostname controls in gnome-control-center become available. Reproducible: Always Steps to Reproduce: 1. Install openSUSE 13.1 GNOME 2. Visit either the Details or Sharing panel in System Settings Actual Results: The hostname entry is insensitive. Expected Results: Hostname entry is sensitive and the user can change his hostname. Bug #858908 is probably related and might be all that needs fixed. I was asked to create this separately. I'm reporting this against Basesystem rather than GNOME because nothing seems to be wrong in GNOME: it just checks the polkit permission org.freedesktop.hostname1.set-static-hostname. See cc_hostname_entry_constructed() in shell/cc-hostname-entry.c in the g-c-c source. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=858922
https://bugzilla.novell.com/show_bug.cgi?id=858922#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=858922
https://bugzilla.novell.com/show_bug.cgi?id=858922#c1
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=858922
https://bugzilla.novell.com/show_bug.cgi?id=858922#c2
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=858922
https://bugzilla.novell.com/show_bug.cgi?id=858922#c3
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=858922
https://bugzilla.novell.com/show_bug.cgi?id=858922#c4
--- Comment #4 from Michael Catanzaro
Manually changing my hostname with hostnamectl works fine, after which the hostname controls in gnome-control-center become available.
I think this comment was just bogus (sorry) -- that was probably how it worked in 12.3, but in 13.1 it is indeed insensitive always, for the reason you mentioned. (In reply to comment #3)
The code correctly 'queries' if the user is allowed to change it and, correctly, reverts back to a insensitive input, as non-permitted.
calling hostnamectl triggers a PK dialog for authrization... which is not implemented in those GNOME dialogs to happen..
I guess this is caused because we drop gnome-control-center.rules, and GNOME provides no way to change the hostname from a non-administrator (wheel) account. So this is trickier than I expected. I guess options would be (1) hide the hostname entry, (2) turn it into a label instead of an entry, (3) accept that wheel == admin, or (4) do nothing (reasonable since this is fairly minor). I think (2) or (3) would be most correct, but (2) requires a patch we keep forever, probably not worth it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=858922
https://bugzilla.novell.com/show_bug.cgi?id=858922#c5
--- Comment #5 from Dominique Leuenberger
participants (1)
-
bugzilla_noreply@novell.com