1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

gsettings applier fixes and logging improvement

This commit is contained in:
Игорь Чудов 2020-06-29 20:05:03 +04:00
parent 7c753098cd
commit fadd7de447
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -49,7 +49,7 @@ class gsettings_applier(applier_frontend):
, self.__module_experimental
)
def apply(self):
def run(self):
# Cleanup settings from previous run
if os.path.exists(self.override_file):
logging.debug(slogm('Removing GSettings policy file from previous run'))
@ -73,6 +73,13 @@ class gsettings_applier(applier_frontend):
except Exception as exc:
logging.debug(slogm('Error recompiling global GSettings schemas'))
def apply(self):
if self.__module_enabled:
logging.debug(slogm('Running GSettings applier for machine'))
else:
logging.debug(slogm('GSettings applier for machine will not be started'))
class gsettings_applier_user(applier_frontend):
__module_name = 'GSettingsApplierUser'
__module_experimental = True
@ -101,7 +108,10 @@ class gsettings_applier_user(applier_frontend):
def user_context_apply(self):
if self.__module_enabled:
logging.debug(slogm('Running GSettings applier for user in user context'))
self.run()
else:
logging.debug(slogm('GSettings applier for user in user context will not be started'))
def admin_context_apply(self):
'''