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

Added staticmethod for update dconf

This commit is contained in:
Valery Sinelnikov 2023-07-27 10:57:36 +04:00
parent 82d52d1c9f
commit e48ca4fc8e

View File

@ -87,6 +87,23 @@ class Dconf_registry():
...
return key_values
@staticmethod
def dconf_update():
try:
process = subprocess.Popen(['dconf', 'update'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
output, error = process.communicate()
if error:
#log error
...
else:
#log done
...
except Exception as exc:
#log exp
...
def check_profile_template(self):
if Path(self.__template_file).exists():
return True