Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions patches/14-override-resources-path.patch
Original file line number Diff line number Diff line change
@@ -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