Package Details: slack-electron 4.41.105-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, using the system Electron package
Upstream URL: https://slack.com/downloads/linux
Keywords: desktop electron slack
Licenses: LicenseRef-SlackProprietary
Conflicts: slack-desktop
Provides: slack-desktop
Submitter: WhiredPlanck
Maintainer: carsme
Last Packager: carsme
Votes: 29
Popularity: 0.45
First Submitted: 2020-07-05 17:00 (UTC)
Last Updated: 2024-12-14 22:18 (UTC)

Dependencies (6)

Required by (1)

Sources (2)

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 Next › Last »

Koffiepoeder commented on 2021-04-21 09:48 (UTC)

For those wondering, using this version to get slack to run under wayland did NOT work for me (i.e. changing /user/bin/slack with the chromium flags --enable-features=UseOzonePlatform --ozone-platform=wayland). Kind of expected, but at least worth a try.

pychuang commented on 2021-03-19 18:52 (UTC)

@mvdan A request for making it an orphan package is already pending. Once the request goes through, other users can take over the package and push new changes.

mvdan commented on 2021-03-19 14:46 (UTC)

What can be done to get this package updated and/or integrate @qubidt's changes?

qubidt commented on 2021-02-10 15:52 (UTC)

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 (UTC)

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

brando56894 commented on 2021-02-02 14:36 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

@jdraymon I confirm.

jdraymon commented on 2020-12-14 18:22 (UTC)

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.