Skip to content

Commit 2669d90

Browse files
Deezer-linux freeze on a Wayland session on Ubuntu 24.04
Fixes #190
1 parent 29a2c12 commit 2669d90

File tree

2 files changed

+40
-10
lines changed

2 files changed

+40
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,21 @@ Other packages can be installed from your package manager, either by clicking on
3939
| `--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)) |
4040
| `--disable-animations` | Disable animations (see [patch](./patches/09-disable-animations.patch)) |
4141
| `--disable-notifications` | Disable notifications (see [patch](./patches/10-disable-notifications.patch)) |
42+
| `--disable-hardware-acceleration` | Disable hardware acceleration (useful for systems with GPU issues) |
4243
| `--log-level` | Set the log level (`silly`,`debug`,`verbose`,`info`,`warn`,`error`) (see [patch](./patches/06-control-log-level.patch)) |
4344
| `--enable-wayland-ime` `--ozone-platform-hint=auto` `--wayland-text-input-version=3` | Enable IME keyboard support on Wayland |
4445

45-
| Environment variable | Options | Description |
46-
| -------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------- |
47-
| `DZ_START_IN_TRAY` | `yes`,`no` | Start the app in the tray (see [patch](./patches/01-start-in-tray.patch)) |
48-
| `DZ_DISABLE_SYSTRAY` | `yes`,`no` | Quit the app when the window is closed (see [patch](./patches/02-start-without-tray.patch)) |
49-
| `DZ_KEEP_KERNEL` | `yes`,`no` | Use the exact kernel version (see [patch](./patches/04-remove-os-information.patch)) |
50-
| `DZ_LOG_LEVEL` | `silly`,`debug`,`verbose`,`info`,`warn`,`error` | Set the log level (see [patch](./patches/06-control-log-level.patch)) |
51-
| `DZ_HIDE_OFFLINE_BANNER` | `yes`,`no` | Hide the "Application is offline" banner (see [patch](./patches/08-hide-offline-banner.patch)) |
52-
| `DZ_DISABLE_ANIMATIONS` | `yes`,`no` | Disable animations (see [patch](./patches/09-disable-animations.patch)) |
53-
| `DZ_DISABLE_NOTIFICATIONS` | `yes`,`no` | Disable notifications (see [patch](./patches/10-disable-notifications.patch)) |
54-
| `DZ_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) |
46+
| Environment variable | Options | Description |
47+
| ---------------------------------- | ----------------------------------------------- | ---------------------------------------------------------------------------------------------- |
48+
| `DZ_START_IN_TRAY` | `yes`,`no` | Start the app in the tray (see [patch](./patches/01-start-in-tray.patch)) |
49+
| `DZ_DISABLE_SYSTRAY` | `yes`,`no` | Quit the app when the window is closed (see [patch](./patches/02-start-without-tray.patch)) |
50+
| `DZ_KEEP_KERNEL` | `yes`,`no` | Use the exact kernel version (see [patch](./patches/04-remove-os-information.patch)) |
51+
| `DZ_LOG_LEVEL` | `silly`,`debug`,`verbose`,`info`,`warn`,`error` | Set the log level (see [patch](./patches/06-control-log-level.patch)) |
52+
| `DZ_HIDE_OFFLINE_BANNER` | `yes`,`no` | Hide the "Application is offline" banner (see [patch](./patches/08-hide-offline-banner.patch)) |
53+
| `DZ_DISABLE_ANIMATIONS` | `yes`,`no` | Disable animations (see [patch](./patches/09-disable-animations.patch)) |
54+
| `DZ_DISABLE_NOTIFICATIONS` | `yes`,`no` | Disable notifications (see [patch](./patches/10-disable-notifications.patch)) |
55+
| `DZ_DISABLE_HARDWARE_ACCELERATION` | `yes`,`no` | Disable hardware acceleration (see [patch](./patches/251226-1766789138.patch)) |
56+
| `DZ_DEVTOOLS` | `yes`,`no` | Enable the developer console (ctrl+shift+i) |
5557

5658
## Building from source
5759

patches/251226-1766789138.patch

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 6648cde4fefd1f40219bffe72b9452ad978768e2 Mon Sep 17 00:00:00 2001
2+
From: josselinonduty <contact@josselinonduty.fr>
3+
Date: Fri, 26 Dec 2025 23:45:39 +0100
4+
Subject: [PATCH] feat: disable hardware acceleration
5+
6+
---
7+
build/main.js | 5 +++++
8+
1 file changed, 5 insertions(+)
9+
10+
diff --git a/build/main.js b/build/main.js
11+
index b2b1c55..63386d4 100644
12+
--- a/build/main.js
13+
+++ b/build/main.js
14+
@@ -2894,6 +2894,11 @@
15+
"disable-features",
16+
"HardwareMediaKeyHandling"
17+
),
18+
+ (process.argv.some(
19+
+ (arg) => arg === "--disable-hardware-acceleration"
20+
+ ) ||
21+
+ "yes" === process.env.DZ_DISABLE_HARDWARE_ACCELERATION) &&
22+
+ external_electron_namespaceObject.app.disableHardwareAcceleration(),
23+
external_electron_namespaceObject.app.on(
24+
"second-instance",
25+
(event, argv) => {
26+
--
27+
2.48.1
28+

0 commit comments

Comments
 (0)