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:
Henning Schild 2025-12-11 16:46:47 +01:00 committed by Sam James
parent 667bf10e47
commit cb26cc2f71
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -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() {