diff --git a/README.md b/README.md index 284bcf0..002f260 100644 --- a/README.md +++ b/README.md @@ -39,19 +39,21 @@ Other packages can be installed from your package manager, either by clicking on | `--hide-offline-banner` | Hide the "Application is offline" banner that appears when using a VPN or DNS blocker (see [patch](./patches/08-hide-offline-banner.patch)) | | `--disable-animations` | Disable animations (see [patch](./patches/09-disable-animations.patch)) | | `--disable-notifications` | Disable notifications (see [patch](./patches/10-disable-notifications.patch)) | +| `--disable-hardware-acceleration` | Disable hardware acceleration (useful for systems with GPU issues) | | `--log-level` | Set the log level (`silly`,`debug`,`verbose`,`info`,`warn`,`error`) (see [patch](./patches/06-control-log-level.patch)) | | `--enable-wayland-ime` `--ozone-platform-hint=auto` `--wayland-text-input-version=3` | Enable IME keyboard support on Wayland | -| Environment variable | Options | Description | -| -------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `DZ_START_IN_TRAY` | `yes`,`no` | Start the app in the tray (see [patch](./patches/01-start-in-tray.patch)) | -| `DZ_DISABLE_SYSTRAY` | `yes`,`no` | Quit the app when the window is closed (see [patch](./patches/02-start-without-tray.patch)) | -| `DZ_KEEP_KERNEL` | `yes`,`no` | Use the exact kernel version (see [patch](./patches/04-remove-os-information.patch)) | -| `DZ_LOG_LEVEL` | `silly`,`debug`,`verbose`,`info`,`warn`,`error` | Set the log level (see [patch](./patches/06-control-log-level.patch)) | -| `DZ_HIDE_OFFLINE_BANNER` | `yes`,`no` | Hide the "Application is offline" banner (see [patch](./patches/08-hide-offline-banner.patch)) | -| `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_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) | +| Environment variable | Options | Description | +| ---------------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `DZ_START_IN_TRAY` | `yes`,`no` | Start the app in the tray (see [patch](./patches/01-start-in-tray.patch)) | +| `DZ_DISABLE_SYSTRAY` | `yes`,`no` | Quit the app when the window is closed (see [patch](./patches/02-start-without-tray.patch)) | +| `DZ_KEEP_KERNEL` | `yes`,`no` | Use the exact kernel version (see [patch](./patches/04-remove-os-information.patch)) | +| `DZ_LOG_LEVEL` | `silly`,`debug`,`verbose`,`info`,`warn`,`error` | Set the log level (see [patch](./patches/06-control-log-level.patch)) | +| `DZ_HIDE_OFFLINE_BANNER` | `yes`,`no` | Hide the "Application is offline" banner (see [patch](./patches/08-hide-offline-banner.patch)) | +| `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/251226-1766789138.patch)) | +| `DZ_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) | ## Building from source diff --git a/patches/251226-1766789138.patch b/patches/251226-1766789138.patch new file mode 100644 index 0000000..acd1d53 --- /dev/null +++ b/patches/251226-1766789138.patch @@ -0,0 +1,28 @@ +From 6648cde4fefd1f40219bffe72b9452ad978768e2 Mon Sep 17 00:00:00 2001 +From: josselinonduty +Date: Fri, 26 Dec 2025 23:45:39 +0100 +Subject: [PATCH] feat: disable hardware acceleration + +--- + build/main.js | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/build/main.js b/build/main.js +index b2b1c55..63386d4 100644 +--- a/build/main.js ++++ b/build/main.js +@@ -2894,6 +2894,11 @@ + "disable-features", + "HardwareMediaKeyHandling" + ), ++ (process.argv.some( ++ (arg) => arg === "--disable-hardware-acceleration" ++ ) || ++ "yes" === process.env.DZ_DISABLE_HARDWARE_ACCELERATION) && ++ external_electron_namespaceObject.app.disableHardwareAcceleration(), + external_electron_namespaceObject.app.on( + "second-instance", + (event, argv) => { +-- +2.48.1 +