Package Details: slack-electron 4.11.3-1

Git Clone URL: https://aur.archlinux.org/slack-electron.git (read-only, click to copy)
Package Base: slack-electron
Description: Slack Desktop (Beta) for Linux, modified to use the system 'electron' package instead of its own
Upstream URL: https://slack.com/downloads
Keywords: desktop electron slack
Licenses: custom: Slack
Conflicts: slack-desktop
Provides: slack, slack-desktop
Submitter: whiredplanck
Maintainer: whiredplanck (crabvk)
Last Packager: crabvk
Votes: 10
Popularity: 1.09
First Submitted: 2020-07-05 17:00
Last Updated: 2020-12-08 00:38

Latest Comments

1 2 Next › Last »

qubidt commented on 2021-02-10 15:52

Updated the PKGBUILD to fix the issues others mentioned. Also updated slack versions and moved the installation directory to /usr/lib to make it more consistent with other electron packages. Not sure which change specifically fixed the issue but I can "sign in" successfully now.

slack-electron AUR diff:

diff --git a/PKGBUILD b/PKGBUILD
index 832ec5a..1a86dfd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Vyacheslav Konovalov <f4f7l1hvr@relay.firefox.com>

 pkgname=slack-electron
-pkgver=4.11.3
+pkgver=4.12.2
 pkgrel=1
 pkgdesc="Slack Desktop (Beta) for Linux, modified to use the system 'electron' package instead of its own"
 arch=('x86_64')
@@ -14,22 +14,24 @@ provides=('slack' 'slack-desktop')
 conflicts=('slack-desktop')
 source=("https://downloads.slack-edge.com/linux_releases/slack-desktop-$pkgver-amd64.deb"
         'slack.sh')
-sha256sums=('03b7fbc8d2f3cdc70be8533dfb09a6fd3e7c2f428e97df27830b0712f479a67c'
-            'ee973ec37027e96e140499cb85dd9587c9dab59bea5a240112c3792bd61a5846')
+sha256sums=('1b9b90234efc37b01b84426ce9aff5ec7a22e4349dc2f60b3354ffb6dac4c38b'
+            '4db11d083626a561129ca40e9cce7cc613c42223f138bb0136c62064c57471fd')

 prepare() {
   bsdtar -xf data.tar.xz

   # Enable slack silent mode and fix icon
-  sed -ri 's|^(Exec=.+/slack)(.+)|\1 -s\2|' $srcdir/usr/share/applications/slack.desktop
-  sed -ri 's/^Icon=.+slack\.png/Icon=slack/' $srcdir/usr/share/applications/slack.desktop
+  sed -ri 's|^(Exec=.+/slack)(.+)|\1 -s\2|' $srcdir/usr/share/applications/${pkgname%-electron}.desktop
+  sed -ri 's/^Icon=.+slack\.png/Icon=slack/' $srcdir/usr/share/applications/${pkgname%-electron}.desktop
 }

 package() {
-  install -Dm755 slack.sh "$pkgdir/usr/bin/slack"
-  install -Dm644 usr/lib/slack/resources/app.asar -t "$pkgdir/usr/share/slack"
-  cp -r usr/lib/slack/resources/app.asar.unpacked "$pkgdir/usr/share/slack"
+  install -Dm755 slack.sh "$pkgdir/usr/bin/${pkgname%-electron}"
+
+  install -dm755 "$pkgdir/usr/lib/${pkgname%-electron}/"
+  cp -dr --no-preserve=ownership usr/lib/slack/resources/* "$pkgdir/usr/lib/${pkgname%-electron}/"
+
   install -Dm644 usr/share/applications/slack.desktop -t "$pkgdir/usr/share/applications"
   install -Dm644 usr/share/pixmaps/slack.png -t "$pkgdir/usr/share/pixmaps"
-  install -Dm644 "$srcdir/usr/lib/slack/LICENSE" "$pkgdir/usr/share/licenses/slack/LICENSE"
+  install -Dm644 "$srcdir/usr/lib/slack/LICENSE" "$pkgdir/usr/share/licenses/${pkgname%-electron}/LICENSE"
 }
diff --git a/slack.sh b/slack.sh
index 393104d..083824f 100644
--- a/slack.sh
+++ b/slack.sh
@@ -1,3 +1,3 @@
-#!/usr/bin/env sh
+#!/bin/sh

-exec electron /usr/share/slack/app.asar "$@"
+exec electron /usr/lib/slack/app.asar "$@"

crabvk commented on 2021-02-02 17:38

I had the same problem. Then I quit my job and removed slask. Problem solved.

brando56894 commented on 2021-02-02 14:36

This one won't login for me, after I click "Sign In" it brings me to the website which then tells me to login, which I do, then it tells me it wants to open Slack, and when it does it just opens a new instance telling me to sign in.

I removed this version and installed slack-desktop and it worked perfectly the first time.

djmattyg007 commented on 2021-01-28 03:44

Using '#!/usr/bin/env sh' in the shebang is pointless, because bash is a hard dependency of pacman. Everyone will always have it installed, so you may as well just refer directly to /bin/bash.

cwrau commented on 2020-12-31 16:37

Do you really need https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=slack-electron#n31?

When I remove that line, slack still works

MarcinWieczorek commented on 2020-12-17 18:51

@jdraymon I confirm.

jdraymon commented on 2020-12-14 18:22

Couldn't get the login on this version (9c99ffddf064) to work - magic login with the regular slack-desktop worked fine.

Looks like it processes the magic link but then restarts, clearing the login. unclear if it's this package or https://aur.archlinux.org/packages/electron-ozone .

Took some startup logs, can provide if someone wants them.

je-vv commented on 2020-12-10 00:49

@a172, when do you get that error? I'm not getting it, and I don't have openh264 installed...

a172 commented on 2020-12-07 14:26

Missing dependancy openh264 (AUR). Without it, you get:

electron: error while loading shared libraries: libopenh264.so.6: cannot open shared object file: No such file or directory

If others are not having this problem, it might be a Wayland dependency.

whiredplanck commented on 2020-12-01 13:33

@jbmorgado Fixed it, I've added it as an optional dependency. :)