The gnome control center crashes on opening the "Date and Time" dialog if gnome-settings-daemon is build without the policykit use flag with the message: (gnome-control-center:11337): datetime-cc-panel-WARNING **: Failed to get using ntp: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon.DateTimeMechanism was not provided by any .service files (gnome-control-center:11337): datetime-cc-panel-WARNING **: Your system does not have the 'org.gnome.settingsdaemon.datetimemechanism.configure' PolicyKit files installed. Please check your installation (gnome-control-center:11337): datetime-cc-panel-WARNING **: Could not get current timezone: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SettingsDaemon.DateTimeMechanism was not provided by any .service files We should either remove the "Date and Time" option from the control center if build with -policykit (if this is possible), or force the dependency to policykit in gnome-settings-daemon. Reproducible: Always Steps to Reproduce: 1. Emerge gnome-settings-daemon without policykit 2. Open gnome-control-center 3. Choose "Date and Time"
Thanks for reporting. The crash was caused by free() on a variable that could be uninitialized - and, in particular, always was uninitialized if gnome-settings-daemon had been built without policykit support. Fixed in gnome-control-center-3.2.2-r1, patch submitted upstream to https://bugzilla.gnome.org/show_bug.cgi?id=670042 >*gnome-control-center-3.2.2-r1 (14 Feb 2012) > > 14 Feb 2012; Alexandre Rostovtsev <tetromino@gentoo.org> > -gnome-control-center-3.2.1.ebuild, +gnome-control-center-3.2.2-r1.ebuild, > +files/gnome-control-center-3.2.2-timezone-free.patch, > +files/gnome-control-center-3.2.2-timezones-linguas.patch: > Fix crash in date and time panel with gnome-settings-daemon[-policykit] (bug > #403527, thanks to Johann Schmitz for reporting). Add a patch to respect > LINGUAS for timezone translations. Drop old.
I just emerged gnome-base/gnome-control-center-3.2.2-r1 and the "Date and Time" dialog opens as expected. However, without +policykit on gnome-settings-daemon i still get the warnings regarding the missing .service files and all settings made in the dialog are not saved. As i said in the first comment, we should either remove the "Date and Time" option from the control center or require +policykit on gnome-settings-daemon.
(In reply to comment #2) Well, since gnome-control-center already requires sys-auth/polkit, I suppose that adding a dependency on gnome-settings-daemon[policykit] will not do any harm. > 16 Feb 2012; Alexandre Rostovtsev <tetromino@gentoo.org> > gnome-control-center-3.2.2.ebuild, gnome-control-center-3.2.2-r1.ebuild: > Depend on gnome-settings-daemon[policykit] (bug #403527 comment #2).