Skip to content

Instantly share code, notes, and snippets.

Last active August 9, 2022 09:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
How to download and install Slack Desktop messaging app on a desktop Linux system without snap support
  • Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/slack-desktop
cd ~/.local/share/slack-desktop
  • Fetch the current Slack Desktop snap
wget "$(wget -qO- --header Snap-Device-Series:\ 16 | python -mjson.tool | grep -iom1 'https.*/download/[a-z0-9_]*.snap')"

Triple-click to select the entire line, above.

  • Unpack the snap package
unsquashfs -q -f -d . *.snap usr/lib/slack usr/share/pixmaps meta/gui/slack.desktop
  • Remove the undeeded snap package
rm -v *.snap
  • Correct the paths in desktop file
sed -i "/^Exec=/s,=,=$PWD/usr/lib/slack/,;s,\${SNAP},$PWD," meta/gui/slack.desktop
  • Install the desktop file, so that it is found by the desktop environment
install -Dm755 meta/gui/slack.desktop ~/.local/share/applications/slack.desktop
update-desktop-database ~/.local/share/applications

You may need to relogin to your desktop environment before Slack Desktop shows up.

To remove just delete ~/.local/share/applications/slack.desktop and the install directory (e.g. ~/.local/share/slack-desktop).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment