mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
net-im/signal-desktop-bin: fix double xdg menu entry
The symlink trick for fixing the app icon on wayland has the side-effect
that the application appears twice in menus. So rename instead of link
the desktop file.
Fixes: 67f24e51e107 ("net-im/signal-desktop-bin: add 7.79.0")
Reported-by: Steffen Weber <steffen.weber@gmail.com>
Signed-off-by: Henning Schild <henning@hennsch.de>
Part-of: https://github.com/gentoo/gentoo/pull/44990
Closes: https://github.com/gentoo/gentoo/pull/44990
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
667bf10e47
commit
cb26cc2f71
@ -64,6 +64,13 @@ src_prepare() {
|
||||
sed -e "s|^Exec=/opt/Signal/signal-desktop|Exec=${MY_PN}|" \
|
||||
-i usr/share/applications/signal-desktop.desktop || die
|
||||
unpack usr/share/doc/signal-desktop/changelog.gz
|
||||
|
||||
# https://github.com/signalapp/Signal-Desktop/issues/6239
|
||||
# https://github.com/signalapp/Signal-Desktop/issues/6122
|
||||
# fixes app icon issues on wayland because "app-id" is "signal"
|
||||
# and desktop file needs to match
|
||||
mv usr/share/applications/signal-desktop.desktop \
|
||||
usr/share/applications/signal.desktop || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
@ -82,12 +89,6 @@ src_install() {
|
||||
#!/bin/sh
|
||||
exec ${EPREFIX}/opt/Signal/signal-desktop --ozone-platform-hint=auto "\${@}"
|
||||
_EOF_
|
||||
|
||||
# https://github.com/signalapp/Signal-Desktop/issues/6239
|
||||
# https://github.com/signalapp/Signal-Desktop/issues/6122
|
||||
# fixes app icon issues on wayland because "app-id" is "signal"
|
||||
# and desktop file needs to match
|
||||
dosym signal-desktop.desktop /usr/share/applications/signal.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
Loading…
x
Reference in New Issue
Block a user