makedeb
Patched official Netease Cloud Music, re-ported from AUR
Click here to go back to the commit logs for netease-cloud-music-patched.
Hash: 9468e8346174e8c3b1aef1d7212e8964e96f42b1
Message: set QT_QPA_PLATFORM to xcb
@SamLukeYes reported: when the user set QT_QPA_PLATFORM="wayland;xcb" globally,
the program does not work, because the bundled platform plugins does not
provide native wayland support.
This patch fix this issue by override QT_QPA_PLATFORM to xcb explicitly.
This is a temporary fix. It should be removed when tray menu problem has been
fixed and all bundled libraries removed.
Signed-off-by: kXuan <kxuanobj@gmail.com>
diff --git a/.SRCINFO b/.SRCINFO
index b16ff23..287a7f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = netease-cloud-music
pkgdesc = Netease Cloud Music, converted from .deb package
pkgver = 1.2.1
- pkgrel = 6
+ pkgrel = 7
url = https://music.163.com/
arch = x86_64
license = custom
@@ -15,8 +15,8 @@ pkgbase = netease-cloud-music
source = netease-cloud-music.bash
sha256sums = 1ee9f02842e6c2c8c79c48b2e932074f9c213a8eb4238e5e63f20438562fecbb
sha256sums = SKIP
- sha256sums = a92650cfd889b1d5c3192adc0785627721f1c60dbfe08a35f124f6f5cc9613dc
+ sha256sums = 1080edde7cbd3716464598f80dd5c715737775bec9501740295a40c48236b109
sha256sums = 0c470e76741c549e5530b2e57d57281eaf198fd56ca3590f664154365b744cf9
- sha256sums = b11bd6ab4abcc375850668f54a4912948875ad9f9b93cfc24f89de16ec1e8ea7
+ sha256sums = 3b2c2e2251461d4ee0509ac00d1677d9fff3eaca24f90ef8678efba2c30ae95f
pkgname = netease-cloud-music
diff --git a/PKGBUILD b/PKGBUILD
index 9e5ac89..7dc77a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=netease-cloud-music
pkgver=1.2.1
_pkgdate=20190428
-pkgrel=6
+pkgrel=7
pkgdesc="Netease Cloud Music, converted from .deb package"
arch=("x86_64")
url="https://music.163.com/"
@@ -19,9 +19,9 @@ source=(
)
sha256sums=('1ee9f02842e6c2c8c79c48b2e932074f9c213a8eb4238e5e63f20438562fecbb'
'SKIP'
- 'a92650cfd889b1d5c3192adc0785627721f1c60dbfe08a35f124f6f5cc9613dc'
+ '1080edde7cbd3716464598f80dd5c715737775bec9501740295a40c48236b109'
'0c470e76741c549e5530b2e57d57281eaf198fd56ca3590f664154365b744cf9'
- 'b11bd6ab4abcc375850668f54a4912948875ad9f9b93cfc24f89de16ec1e8ea7')
+ '3b2c2e2251461d4ee0509ac00d1677d9fff3eaca24f90ef8678efba2c30ae95f')
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
diff --git a/netease-cloud-music.bash b/netease-cloud-music.bash
index e3240b1..5628baa 100755
--- a/netease-cloud-music.bash
+++ b/netease-cloud-music.bash
@@ -3,6 +3,7 @@ HERE="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH="${HERE}"/libs
export QT_PLUGIN_PATH="${HERE}"/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH="${HERE}"/plugins/platforms
+export QT_QPA_PLATFORM=xcb
export LD_PRELOAD="${HERE}"/libnetease-patch.so
exec "${HERE}"/netease-cloud-music $@
diff --git a/patch.c b/patch.c
index e1df062..f34e989 100644
--- a/patch.c
+++ b/patch.c
@@ -116,6 +116,7 @@ int execve(const char *path, char *const argv[], char *const envp[])
STRING_WITH_LEN_INIT("LD_PRELOAD="),
STRING_WITH_LEN_INIT("QT_PLUGIN_PATH="),
STRING_WITH_LEN_INIT("QT_QPA_PLATFORM_PLUGIN_PATH="),
+ STRING_WITH_LEN_INIT("QT_QPA_PLATFORM="),
};
size_t nenv;