Can't start Slack on Debian bookworm

Hi,

I’ve installed Slack as described here with sudo snap install slack. When I try to run it with slack in the terminal or with the Slack icon in the Applications menu, some processes start, but I neither see a window nor an item/notifaction in the panel. I’ve checked ps -ef | grep slack and see a list of processes like

  • /snap/slack/158/usr/lib/slack/slack --no-sandbox --no-sandbox --executed-from=/home/user --pid=6556
  • /snap/slack/158/usr/lib/slack/slack --type=zygote --no-zygote-sandbox --no-sandbox
  • /snap/slack/158/usr/lib/slack/slack --type=zygote --no-sandbox
  • /snap/slack/158/usr/lib/slack/chrome_crashpad_handler --monitor-self-annotation=ptype=crashpad-handler --no-upload-gzip --database=/home/user/snap/slack/158/.config/Slack/Crashpad --url=https://slack.com/apps/sentryproxy/api/5277886/minidump/?sentry_key=fd30fe469dbf4aec9db40548e5acf91e --annotation=_productName=Slack --annotation=_version=4.39.95 --annotation=lsb-release=Ubuntu Core 18 --annotation=plat=Linux --annotation=prod=Electron --annotation=sentry___initialScope={"release":"Slack@4.39.95","environment":"production","user":{"id":"201fd755-bc12-417e-a1c5-923886d26a46"},"tags":{"uuid":"201fd755-bc12-417e-a1c5-923886d26a46"},"extra":{"sessionId":"MjAxZmQ3NTUtYmMxMi00MTdlLWExYzUtOTIzODg2ZDI2YTQ2XzE3MjQ4ODI2NDEwMTg="}} --annotation=ver=31.2.1 --initial-client-fd=43 --shared-client-connection
  • /snap/slack/158/usr/lib/slack/slack --type=gpu-process --no-sandbox --crashpad-handler-pid=6676 --enable-crash-reporter=b2fdc941-804f-47cc-87b6-722c61ac746b,no_channel --user-data-dir=/home/user/snap/slack/158/.config/Slack --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAEAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=3,i,17565491723059165335,5611377810655894271,262144 --enable-features=WebRTCPipeWireCapturer --disable-features=AllowAggressiveThrottlingWithWebSocket,CalculateNativeWinOcclusion,EnableWatermarkView,HardwareMediaKeyHandling,IntensiveWakeUpThrottling,LogJsConsoleMessages,PostQuantumKyber,RequestInitiatorSiteLockEnfocement,SpareRendererForSitePerProcess,WebRtcHideLocalIpsWithMdns,WinRetrieveSuggestionsOnlyOnDemand --variations-seed-version
  • /snap/slack/158/usr/lib/slack/slack --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --crashpad-handler-pid=6676 --enable-crash-reporter=b2fdc941-804f-47cc-87b6-722c61ac746b,no_channel --user-data-dir=/home/user/snap/slack/158/.config/Slack --standard-schemes=app,slack-webapp-dev --secure-schemes=app,slack-webapp-dev --bypasscsp-schemes=slack-webapp-dev --cors-schemes=slack-webapp-dev --fetch-schemes=slack-webapp-dev --service-worker-schemes=slack-webapp-dev --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,17565491723059165335,5611377810655894271,262144 --enable-features=WebRTCPipeWireCapturer --disable-features=AllowAggressiveThrottlingWithWebSocket,CalculateNativeWinOcclusion,EnableWatermarkView,HardwareMediaKeyHandling,IntensiveWakeUpThrottling,LogJsConsoleMessages,PostQuantumKyber,RequestInitiatorSiteLockEnfocement,SpareRendererForSitePerProcess,WebRtcHideLocalIpsWithMdns,WinRetrieveSuggestionsOnlyOnDemand --variations-seed-version

But I can’t actually do anything. When I manually run /snap/slack/158/usr/lib/slack/slack --no-sandbox, I see a Slack icon in the notifier in the panel and the Slack window opens (without favicon). When I try to login, the browser opens, I can login in the browser and the browser tries to redirect to the Slack app, but the last step doesn’t work. It seems like the MIME type handler tries to open/access the application and can’t reach it.

Maybe I can tweak something somewhere, but it would probably better, if the source of the problem could be fixed.

I had the same problem, i solved it by adding /etc/debian_version r, to /var/lib/snapd/apparmor/profiles/snap.slack.slack and then reloading/restarting apparmor sudo systemctl restart snapd.apparmor.service

Mind you that this will be overwritten once Slack updates, ie require the modification after every refresh of the Snap.

I felt like preparing a PR for this: interfaces: apparmor: Add read-access to debian_version to the template by fredldotme · Pull Request #14542 · canonical/snapd · GitHub

I can’t verify it myself so someone building it and giving it a test would be good.