Browse Source

Adds a new Desktop Entry for tray-launcher

tray-icon-launcher
Nemo 3 months ago
parent
commit
391b63a0b7
  1. 28
      PKGBUILD
  2. 19
      signal-desktop-beta-bin.install
  3. 4
      tray-launcher.desktop

28
PKGBUILD

@ -7,14 +7,34 @@ url="https://github.com/WhisperSystems/Signal-Desktop#readme"
license=('GPL3')
depends=('gtk2' 'libnotify' 'libxtst' 'nss' 'xdg-utils' 'libxss')
options=('!strip' '!emptydirs')
install=${pkgname}.install
provides=('signal-desktop-beta')
pkgver=1.40.0beta.7
source=("https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop-beta/signal-desktop-beta_1.40.0-beta.7_amd64.deb")
sha256sums=('86efd88f6cd8aaef26c4062832ca99c9c7cb81e7be1b88f4b46bcefaa490b68e')
source=("https://updates.signal.org/desktop/apt/pool/main/s/signal-desktop-beta/signal-desktop-beta_1.40.0-beta.7_amd64.deb" "tray-launcher.desktop")
sha256sums=('86efd88f6cd8aaef26c4062832ca99c9c7cb81e7be1b88f4b46bcefaa490b68e' '7fcce2563169b2080b4ec6589a59916617e5fe43910cf30f8cf25ba2f5ce0be9')
package(){
# Extract package data
tar xf data.tar.xz -C "${pkgdir}"
}
cat "tray-launcher.desktop" >> "${pkgdir}/usr/share/applications/signal-desktop-beta.desktop"
}
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
# Link to the binary
ln -sf '/opt/Signal Beta/signal-desktop-beta' '/usr/bin/signal-desktop-beta'
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
# Delete the link to the binary
rm -f '/usr/bin/signal-desktop-beta'
update-desktop-database -q
}

19
signal-desktop-beta-bin.install

@ -1,19 +0,0 @@
post_install() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
# Link to the binary
ln -sf '/opt/Signal Beta/signal-desktop-beta' '/usr/bin/signal-desktop-beta'
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
# Delete the link to the binary
rm -f '/usr/bin/signal-desktop-beta'
update-desktop-database -q
}

4
tray-launcher.desktop

@ -0,0 +1,4 @@
[Desktop Action RunTray]
Name=Signal Beta (Use Tray Icon)
Exec="/opt/Signal Beta/signal-desktop-beta" --no-sandbox %U --use-tray-icon
Loading…
Cancel
Save