mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-17 23:18:49 -04:00
net-misc/baidunetdisk: fix not displayed bug on wayland
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
ff396e96bd
commit
b419ea19dd
@ -37,11 +37,12 @@ src_install() {
|
||||
insinto /opt
|
||||
doins -r opt/"${PN}"
|
||||
fperms +x /opt/"${PN}"/"${PN}"
|
||||
dosym -r /opt/{"${PN}"/"${PN}",bin/"${PN}"}
|
||||
dobin "${FILESDIR}"/baidunetdisk
|
||||
|
||||
gzip -d usr/share/doc/"${PN}"/*.gz || die
|
||||
dodoc usr/share/doc/"${PN}"/*
|
||||
|
||||
sed -i "s/Exec=.*/Exec=baidunetdisk %U/g" usr/share/applications/"${PN}".desktop
|
||||
domenu usr/share/applications/"${PN}".desktop
|
||||
doicon -s scalable usr/share/icons/hicolor/scalable/apps/"${PN}".svg
|
||||
}
|
||||
|
7
net-misc/baidunetdisk/files/baidunetdisk
Normal file
7
net-misc/baidunetdisk/files/baidunetdisk
Normal file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
if [ "${GDK_BACKEND}" = "wayland" ]; then
|
||||
export GDK_BACKEND=x11
|
||||
/opt/baidunetdisk/baidunetdisk --no-sandbox "$@"
|
||||
else
|
||||
/opt/baidunetdisk/baidunetdisk --no-sandbox "$@"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user