net-im/signal-desktop-bin: add start-in-tray for desktop file

Closes: https://github.com/gentoo/gentoo/pull/9430
Package-Manager: Portage-2.3.40, Repoman-2.3.9
This commit is contained in:
Amy Liffey
2018-08-06 15:01:56 +01:00
parent 56f7d4eb11
commit 78a3f0c2f4

View File

@@ -6,6 +6,7 @@ EAPI=6
MY_PN="${PN/-bin/}"
inherit gnome2-utils pax-utils unpacker xdg-utils
DESCRIPTION="Allows you to send and receive messages of Signal Messenger on your computer"
HOMEPAGE="https://signal.org/
https://github.com/WhisperSystems/Signal-Desktop"
@@ -33,6 +34,12 @@ QA_PREBUILT="opt/Signal/signal-desktop
S="${WORKDIR}"
src_prepare(){
default
sed -e 's|\("/opt/Signal/signal-desktop"\)|\1 --start-in-tray|g' \
-i usr/share/applications/signal-desktop.desktop || die
}
src_install() {
insinto /
dodoc -r usr/share/doc/signal-desktop/.