From 39b92ce763feee50cc96e20d7332e457d8ed5221 Mon Sep 17 00:00:00 2001 From: Valery Sinelnikov Date: Thu, 14 Nov 2024 11:16:23 +0400 Subject: [PATCH] The save_dconf moved to the required stage --- gpoa/gpoa | 2 +- gpoa/util/windows.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gpoa/gpoa b/gpoa/gpoa index 47bee6a..1b65ef9 100755 --- a/gpoa/gpoa +++ b/gpoa/gpoa @@ -152,6 +152,7 @@ class gpoa_controller: if back: try: back.retrieve_and_store() + save_dconf(self.username, self.is_machine) # Start frontend only on successful backend finish self.start_frontend() except Exception as exc: @@ -164,7 +165,6 @@ class gpoa_controller: einfo = geterr() logdata.update(einfo) log('E3', logdata) - save_dconf(self.username, self.is_machine) def start_frontend(self): ''' diff --git a/gpoa/util/windows.py b/gpoa/util/windows.py index c49cee5..8933db4 100644 --- a/gpoa/util/windows.py +++ b/gpoa/util/windows.py @@ -111,9 +111,9 @@ class smbcreds (smbopts): ''' gpos = list() if Dconf_registry.get_info('machine_name') == username: - dconf_dict = Dconf_registry.get_dictionary_from_dconf_file_db() + dconf_dict = Dconf_registry.get_dictionary_from_dconf_file_db(save_dconf_db=True) else: - dconf_dict = Dconf_registry.get_dictionary_from_dconf_file_db(get_uid_by_username(username)) + dconf_dict = Dconf_registry.get_dictionary_from_dconf_file_db(get_uid_by_username(username), save_dconf_db=True) dict_gpo_name_version = extract_display_name_version(dconf_dict) try: log('D48')