summary refs log blame commit diff
path: root/pkgs/tools/admin/pgadmin/check-system-config-dir.patch
blob: ce1778f325997daad8f75896f2a328e937b25d60 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13



                                                                             








                                                                                                      

                                                     
--- a/web/pgadmin/evaluate_config.py      2023-04-11 17:36:46.000000000 +0200
+++ b/web/pgadmin/evaluate_config.py    2023-04-14 09:54:33.496434314 +0200
@@ -76,6 +76,12 @@
         custom_config_settings.update(config_system_settings)
     except ImportError:
         pass
+    except PermissionError:
+        print(f"Permission denied to open {str(system_config_dir + '/config_system.py')}. \n \
+              If you are running pgadmin4-desktopmode please make sure you disable  \n \
+              the pgadmin NixOS module first. If you rely on settings in \n \
+              {str(system_config_dir + '/config_system.py')}, please check the correct permissions.")
+        pass


 def evaluate_and_patch_config(config: dict) -> dict: