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:
parent
82d52d1c9f
commit
e48ca4fc8e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user