Files
nixpkgs/nixos/tests
Florian Brandes 16e6ce7824 pgadmin4: add option to enable desktop mode
By default, pgadmin4 uses SERVER_MODE = True. This requires
access to system directories (e.g. /var/lib/pgadmin). There is
no easy way to change this mode during runtime. One has to change
or add config files withing pgadmin's directory structure to change it
or add a system-wide config file under `/etc/pgadmin`[1].

This isn't always easy to achive or may not be possible at all. For
those usecases this implements a switch in the pgadmin4 derivation and
adds a new top-level package `pgadmin4-desktopmode`. This builds in
DESKTOP MODE and allows the usage of pgadmin4 without the nixOS module
and without access to system-wide directories.

pgadmin4 module saves the configuration to /etc/pgadmin/config_system.py
pgadmin4-desktopmode tries to read that as well. This normally fails with
a PermissionError, as the config file is owned by the user of the pgadmin module.

With the check-system-config-dir.patch this will just throw a warning
but will continue and not read the file.

If we run pgadmin4-desktopmode as root
(something one really shouldn't do), it can read the config file and fail,
because of the wrong config for desktopmode.

[1]https://www.pgadmin.org/docs/pgadmin4/latest/config_py.html

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-13 14:55:54 +01:00
..
2022-06-17 18:16:12 +02:00
2022-12-30 15:12:45 +01:00
2022-03-28 14:11:58 +02:00
2022-10-28 21:03:30 -07:00
2022-12-08 23:08:44 +01:00
2022-12-08 23:08:44 +01:00
2022-09-24 17:38:09 +01:00
2022-10-15 14:03:24 +02:00
2022-11-06 18:49:17 +01:00
2022-09-24 17:38:09 +01:00
2022-09-24 17:38:09 +01:00
2023-02-06 18:46:38 +10:00
2022-12-04 20:12:50 +01:00
2022-03-28 14:11:58 +02:00
2022-12-27 14:37:01 +01:00
2022-12-03 12:26:58 +01:00
2023-01-04 21:45:58 +01:00
2022-03-28 14:11:58 +02:00
2022-12-15 21:07:15 -06:00
2022-08-06 19:43:34 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-04-29 22:22:05 +02:00
2022-02-14 22:48:32 -03:00
2023-02-03 16:53:17 -06:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-09-05 18:48:58 +08:00
2023-01-23 22:41:07 +00:00
2022-03-28 14:11:58 +02:00
2023-02-13 14:54:40 +01:00
2022-12-17 19:31:14 -05:00
2023-01-30 07:48:51 +01:00
2022-07-26 22:38:05 +02:00
2022-09-24 17:38:09 +01:00
2022-12-20 22:54:01 +01:00
2022-09-24 17:38:10 +01:00
2022-10-15 14:05:59 +02:00
2022-11-20 00:35:59 +01:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-09-04 05:28:22 +02:00
2022-03-28 14:11:58 +02:00
2022-09-23 23:55:54 +03:00
2022-10-22 16:07:52 +03:00
2022-03-28 14:11:58 +02:00
2022-12-28 16:03:49 +01:00
2022-04-07 14:43:53 +00:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-11-30 12:15:00 +01:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-09-24 17:38:09 +01:00
2022-03-28 14:11:58 +02:00
2023-02-13 14:55:02 +01:00
2022-09-10 18:09:08 +02:00
2022-12-17 19:31:14 -05:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-01-30 13:37:20 +01:00
2022-03-07 23:38:25 +01:00
2022-08-07 21:21:45 +02:00
2022-12-17 19:31:14 -05:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-08-04 22:58:38 +02:00
2022-10-26 15:41:40 +02:00
2022-11-26 21:42:35 +01:00
2022-10-10 10:46:25 +05:30
2022-07-27 23:27:29 +02:00
2023-01-10 20:50:15 +08:00
2023-01-23 10:59:20 +01:00
2022-08-18 15:29:47 +03:00
2022-08-18 22:52:27 -04:00
2022-03-28 14:11:58 +02:00
2022-09-26 00:16:03 +05:30
2022-09-26 17:04:52 +02:00
2022-07-17 16:21:25 -04:00
2022-03-28 14:11:58 +02:00
2022-07-26 04:45:03 +02:00
2022-09-21 19:55:20 +02:00
2022-03-28 14:11:58 +02:00
2022-07-02 09:38:23 +08:00
2022-04-03 03:37:22 +08:00
2022-11-26 11:52:51 +01:00
2023-01-08 23:57:34 +08:00
2022-09-24 17:38:09 +01:00
2022-10-31 09:24:28 +01:00
2022-06-07 06:53:15 -04:00
2023-01-15 13:11:37 +01:00
2022-09-04 09:07:40 +00:00
2023-02-04 02:23:14 +01:00
2022-03-28 14:11:58 +02:00
2023-01-05 21:21:33 +01:00
2022-09-02 18:09:00 +00:00
2022-03-22 15:35:39 -07:00
2022-02-03 12:31:36 +01:00
2022-10-28 17:39:30 +02:00
2022-04-02 18:28:02 +01:00
2023-02-04 07:44:04 +00:00
2023-02-02 15:33:00 +02:00
2022-03-28 14:11:58 +02:00
2022-03-07 17:36:21 +01:00
2022-08-12 15:45:48 -07:00
2022-08-22 16:37:43 +03:00
2022-12-17 19:31:14 -05:00
2022-11-05 21:40:57 +01:00
2022-12-19 17:06:41 +01:00
2023-02-02 11:07:25 +01:00
2023-01-15 15:59:30 +01:00
2023-01-29 05:40:28 +01:00
2022-03-09 01:19:10 +01:00
2023-01-15 18:02:46 +01:00
2022-10-15 07:05:10 -07:00
2022-03-28 14:11:58 +02:00
2022-09-24 17:38:09 +01:00
2022-05-12 01:56:16 +02:00
2022-03-28 14:11:58 +02:00
2022-09-21 22:26:03 +02:00
2022-03-28 14:11:58 +02:00
2023-01-11 00:06:13 +01:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-08-22 18:56:47 +02:00
2022-03-28 14:11:58 +02:00
2022-03-23 10:59:09 +01:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-02-01 12:55:29 +01:00
2022-12-01 11:17:39 +01:00
2022-09-24 17:38:09 +01:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2023-02-01 15:27:41 +00:00
2022-06-13 14:30:08 +00:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-12-28 00:17:28 +01:00
2022-02-02 20:42:06 +01:00
2022-11-01 16:55:31 +01:00
2022-10-23 12:44:16 +02:00
2022-03-28 14:11:58 +02:00
2022-09-27 21:45:27 +02:00
2022-03-28 14:11:58 +02:00
2023-01-12 01:48:12 -08:00
2022-11-27 12:56:00 -05:00
2022-09-06 16:00:26 +02:00
2022-06-06 22:20:31 +02:00
2022-11-24 20:48:42 +01:00
2022-12-29 01:24:46 +01:00
2022-03-28 14:11:58 +02:00
2022-11-05 12:38:11 +01:00
2022-03-28 14:11:58 +02:00
2022-09-20 20:07:11 -04:00
2022-06-29 00:52:12 +02:00
2022-03-28 14:11:58 +02:00
2022-03-28 14:11:58 +02:00
2022-02-23 10:41:28 -05:00
2022-11-07 18:35:44 -05:00