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

gsettings_applier: Run only if it is enabled

This commit is contained in:
Игорь Чудов 2020-06-26 20:16:44 +04:00
parent f275583874
commit 98b7346bf1
Signed by untrusted user: nir
GPG Key ID: 0F3883600CAE7AAC

View File

@ -84,7 +84,7 @@ class gsettings_applier_user(applier_frontend):
self.gsettings = list()
self.__module_enabled = check_module_enabled(self.storage, self.__module_name, self.__module_enabled)
def user_context_apply(self):
def run(self):
for setting in self.gsettings_keys:
valuename = setting.hive_key.rpartition('\\')[2]
rp = valuename.rpartition('.')
@ -95,6 +95,10 @@ class gsettings_applier_user(applier_frontend):
for gsetting in self.gsettings:
gsetting.apply()
def user_context_apply(self):
if self.__module_enabled:
self.run()
def admin_context_apply(self):
'''
Not implemented because there is no point of doing so.