I've done sudo snap install slack --classic
and now have the Slack snap application (v. 4.1.2). When I run slack
from the terminal, it opens the app, with the sign in button. Clicking this opens the Slack login page in my default browser (chromium, snap app v. 78.0.3904.108), where I successfully login.
The trouble is that it says, "Signing you in to Slack. You should be redirected in a few moments." Then, a pop-up appears: "Open xdg-open?" I select "xdg-open" (instead of "cancel") and then......nothing happens. The Slack snap app still shows the sign in page, while the browser thinks I've logged in and just says "Signing you in to Slack."
Is this because of sandboxing issues with the Chromium snap app? I'd love for my Slack (multiple workspaces) to be in a separate app, instead of being trapped in a browser tab, so any and all help resolving this would be greatly appreciated! And apologies if this is posted in the wrong place; I'd be keen to know anywhere else that might better fix this.
Other possibly relevant details:
- Hardware: 2015 Macbook Pro 13" Retina
- OS: LXLE 18.04
Faced this issue on a snap install of Slack. Using Firefox rather than a Chromium-based browser did the trick.
Copy the link from the browser and run
in your terminal.
2022 edit: This answer is old. Snap added slack as an allowed url scheme. See https://github.com/snapcore/snapd/blob/master/usersession/userd/launcher.go ~line 100.
This is because snap does not allow you to use special url schemes like slack:// . So chrome tries to open it but it is blocked. If you use firefox from apt you don't have this error and it will work fine (even if you use slack from snap). The error shows in your syslog:
To login using chromium anyways, at the bottom the page says this:
Right click "Try again" select "Copy link address" and with that in your clipboard just go back to slack. Slack will see the url in your clipboard and log you in.
Note: The fact this works is a slack feature. This does not work for other applications like zoom, unless of course they have this feature build-in as well.
Add the x-scheme-handler to your mimeinfo.cache like so:
make sure you have a slack.desktop file either in
/usr/share/applications/
or~/.local/share/applications/
If you don't then try this.
then
cat ~/.local/share/applications/slack.desktop
and make sureExec=
points to slack.If this doesn't work, try
and see if those files are being opened. If this is still failing just comment below with your issues and I'll come back and tell you next steps. It was pretty frustrating only finding wrong answers for this question on the internet, I know your pain.