Package Details: slack-desktop-wayland 4.40.128-1

Git Clone URL: https://aur.archlinux.org/slack-desktop-wayland.git (read-only, click to copy)
Package Base: slack-desktop-wayland
Description: Slack Desktop (Beta) for Linux with Wayland Support
Upstream URL: https://slack.com/downloads
Licenses: custom
Conflicts: slack-desktop, slack-electron
Provides: slack-desktop
Submitter: cspeck-aai
Maintainer: cspeck-aai
Last Packager: cspeck-aai
Votes: 7
Popularity: 1.14
First Submitted: 2023-01-06 06:10 (UTC)
Last Updated: 2024-10-11 05:36 (UTC)

Dependencies (14)

Required by (0)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

CommanderRedYT commented on 2024-01-11 08:58 (UTC)

I downgraded to commit 14865e45c5406fcb1dbba6c12db37722e9dc5755 and I was logged in again (before downgrade i wasnt)

CommanderRedYT commented on 2024-01-11 08:51 (UTC)

Latest version for me works to login with the thing mentioned by cspeck-aai, but I get logged out after some time (<1d). Yesterday I logged myself into the application, now it wants me to do that again..

cspeck-aai commented on 2024-01-10 01:36 (UTC)

gnuruzzi & katsuoryuu that problem isn't specific to this package you need to get the Slack login key.

If you are signed into those workspace in the browser, get it from https://{yourworkspace}.slack.com/ssb/signin_redirect/fallback.

This package and method works for me.

gnuruzzi commented on 2024-01-09 10:19 (UTC)

Latest version goes into a dead loop of logging in and opening an un-authenticated client again and again and again ...

katsuoryuu commented on 2024-01-09 01:21 (UTC)

This latest version causes me to go into a dead-loop where it opens slack, fails to login and slack calls (for some reason) 3 times to the browser to login, and just continues this loop. It seems that the browser cannot catch the existing running instance.

sewer56 commented on 2024-01-04 10:05 (UTC)

Can confirm it works under electron28 and electron27; under the current setup.

Sure the flow is convoluted but thankfully, at least it works. It could be worse (see: Discord). Haha

cspeck-aai commented on 2024-01-04 00:13 (UTC)

@sewer56 Turns out I was getting those errors too, although in the background on my system (Nvidia proprietary drivers + Gnome) it was recovering and loading anyway.

I've pushed a change that disables GPU acceleration in the embedded Electron Chrome browser and this has made these errors stop.

Note that it appears to take three clicks after you click "Share screen" in a huddle, the Slack "Share your screen" appears with the xdg-desktop-portal over the top:

  1. select from xdg-desktop-portal, it disappears
  2. select from Slack "Share your screen", xdg-desktop-portal reappears
  3. select from xdg-desktop-portal, it disappears, a control bar appears and sharing starts

This convoluted flow doesn't appear in other situations, e.g. sharing in Firefox via Jitsi Meet. You should complain to the makers of Slack if you want this flow fixed.

If you (or anyone else) wants to play around further with the flags or electron version you can do so like this:

SLACK_ELECTRON_EXEC=electron28 SLACK_WAYLAND_FLAGS="..." /usr/bin/slack

I can confirm it's working with current electron (electron27) and electron28.

sewer56 commented on 2024-01-03 11:29 (UTC) (edited on 2024-01-03 11:30 (UTC) by sewer56)

Heads up.

I am getting a segfault on boot with latest package on Hyprland w/ Nvidia GPU (prioprietary). Previous commit 95e32ead5cb8 works fine as intended, but current commit dies 1fa7def0ef32.

(electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
[01/03/24, 11:24:21:289] info: 
╔════════════════════════════════════════════════════════════╗
║      Slack 4.36.134, linux 6.6.6-273-tkg-eevdf on x64      ║
╚════════════════════════════════════════════════════════════╝ 
[01/03/24, 11:24:21:290] info: Configured logger via 
{
  "enableConsoleTransport": true,
  "identifierOverride": "webapp-service-worker-console",
  "loggerInstanceCount": 2
}
[01/03/24, 11:24:21:290] info: Predefined values for process 
{
  "NODE_ENV": "production",
  "platform": "linux",
  "type": "browser",
  "timeZone": "Europe/Dublin",
  "PACKAGE_MANIFEST.productName": "Slack",
  "PACKAGE_MANIFEST.version": "4.36.134",
  "PACKAGE_MANIFEST.commit": "42e4da2",
  "PACKAGE_MANIFEST.branch": "HEAD"
}
[108114:0103/112421.343819:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[108114:0103/112421.343889:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[108114:0103/112421.343999:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[108114:0103/112421.344046:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[108114:0103/112421.344096:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[108114:0103/112421.344137:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[108114:0103/112421.344183:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[108064:0103/112421.349403:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[108171:0103/112421.441359:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[108171:0103/112421.441419:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[108171:0103/112421.441527:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[108171:0103/112421.441555:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[108171:0103/112421.441574:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[108171:0103/112421.441591:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[108171:0103/112421.441624:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[108064:0103/112421.446947:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[108181:0103/112421.535436:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[108181:0103/112421.535501:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=SCANOUT
[108181:0103/112421.535602:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: No such file or directory (2)
[108181:0103/112421.535631:ERROR:gbm_pixmap_wayland.cc(75)] Cannot create bo with format= RGBA_8888 and usage=GPU_READ
[108181:0103/112421.535651:ERROR:shared_image_factory.cc(673)] CreateSharedImage: could not create backing.
[108181:0103/112421.535667:ERROR:shared_image_factory.cc(527)] DestroySharedImage: Could not find shared image mailbox
[108181:0103/112421.535701:ERROR:gpu_service_impl.cc(1010)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[108064:0103/112421.539726:ERROR:gpu_process_host.cc(954)] GPU process exited unexpectedly: exit_code=8704
[1]    108064 segmentation fault (core dumped)  slack

I don't yet know the exact cause; though the log indicates it's GPU related.

cspeck-aai commented on 2024-01-03 06:35 (UTC)

I had some time to deep-dive into this today and have pushed updates that:

  • update the Slack version
  • Uses system electron, thanks to packaging instructions from slack-electron
  • Monkey-patches the Slack electron app so that Pipewire is not disabled
  • puts slack path, electron path, Wayland flags in variables so you may customize it on your system and test different electron versions and flags.

It takes four clicks between xdg-desktop-portal and the Slack "Share your screen" modal, but screen sharing does appear to work again for me. YMMV.

If you want an official, stable and long-term fix in Wayland then I'd encourage you add your voice to this post.

marvas commented on 2023-11-07 15:24 (UTC)

I updated this package myself and my screen sharing issues are gone by simply updating the .deb file.

I don't know how to open a pull request here. Therefore, here is my repository on Github: https://github.com/marvasDE/slack-desktop-wayland