Skip to content

Instantly share code, notes, and snippets.

@RedRoserade
Created January 4, 2022 09:21
Show Gist options
  • Save RedRoserade/e80092f043438dc62f243cc1a1de1e95 to your computer and use it in GitHub Desktop.
Save RedRoserade/e80092f043438dc62f243cc1a1de1e95 to your computer and use it in GitHub Desktop.
Slack on Wayland on Flatpak

As of this post, Slack runs on XWayland by default. This poses an issue on HiDPI displays, where there are noticeable slowdowns.

Running on Wayland is a solution, but there are a couple of things that need addressing:

This should make it boot.

Known issues:

  • On Gnome Shell, the app window won't have a titlebar and it won't have borders; you can use the window management shortcuts (Meta + Up, Down, Left, Right) to maximize or tile it.
  • If you receive a call on a direct message, the call prompt won't show. You will either need to start the call yourself or click the corresponding button on the chat window

The following command line arguments are optional:

  • --disable-smooth-scrolling because I have a touchpad that works well, and I can't stand in-app "smooth" scrolling, especially when it can't run at 60fps
  • --enable-gpu --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers to force-enable the GPU (your mileage may vary, especially regarding stability)
[Desktop Entry]
Name=Slack
Comment=Slack Desktop
GenericName=Slack Client for Linux
Exec=/usr/bin/flatpak run --branch=stable --socket=wayland --arch=x86_64 --command=slack --file-forwarding com.slack.Slack --enable-gpu --ignore-gpu-blacklist --enable-gpu-rasterization --enable-native-gpu-memory-buffers --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland --disable-gpu-memory-buffer-video-frames --disable-smooth-scrolling @@u %U @@
Icon=com.slack.Slack
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Network;InstantMessaging;
MimeType=x-scheme-handler/slack;
X-Desktop-File-Install-Version=0.26
StartupWMClass=Slack
X-Flatpak-RenamedFrom=slack.desktop;
X-Flatpak=com.slack.Slack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment