diff --git a/README.md b/README.md index 93c646d..9afb316 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Other packages can be installed from your package manager, either by clicking on | `DZ_DISABLE_ANIMATIONS` | `yes`,`no` | Disable animations (see [patch](./patches/09-disable-animations.patch)) | | `DZ_DISABLE_NOTIFICATIONS` | `yes`,`no` | Disable notifications (see [patch](./patches/10-disable-notifications.patch)) | | `DZ_DISABLE_HARDWARE_ACCELERATION` | `yes`,`no` | Disable hardware acceleration (see [patch](./patches/13-disable-hardware-acceleration.patch)) | +| `DZ_RESOURCES_PATH` | _path_ | Override the default resources path (see [patch](./patches/14-override-resources-path.patch)) | | `DZ_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) | ## Building from source diff --git a/patches/14-override-resources-path.patch b/patches/14-override-resources-path.patch new file mode 100644 index 0000000..ec12fce --- /dev/null +++ b/patches/14-override-resources-path.patch @@ -0,0 +1,29 @@ +From 411d15d899a87b8a09c4e4a9a0bfcbb0ec04d88b Mon Sep 17 00:00:00 2001 +From: FelixLusseau <94113911+FelixLusseau@users.noreply.github.com> +Date: Sat, 21 Feb 2026 12:41:45 +0100 +Subject: [PATCH] feat: Allow custom resources path via environment variable + +This patch allows users to override the default resources path using +the DZ_RESOURCES_PATH environment variable. This is useful for +custom installations where resources like systray.png icon are not +in the default location. +--- + build/main.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build/main.js b/build/main.js +index 6a6697d..0e03d05 100644 +--- a/build/main.js ++++ b/build/main.js +@@ -134,7 +134,7 @@ + return external_path_default().join( + isDev(app) + ? external_path_default().join(app.getAppPath(), "resources") +- : process.resourcesPath, ++ : process.env.DZ_RESOURCES_PATH || process.resourcesPath, + appIcon + ); + } +-- +2.52.0 +