thisiscam / math-with-slack

Rendered math (MathJax) with Slack's desktop client
MIT License
306 stars 28 forks source link

Slack v4.22.0 doesn't open after `math-with-slack` installation #27

Closed motiwari closed 2 years ago

motiwari commented 2 years ago

math-with-slack has stopped working with v4.22.0 and no longer renders LaTeX properly.

I tried reinstalling math-with-slack but after doing so, Slack will fail to open and needs to be re-installed.

On MacOS Big Sur 11.6

Repro steps:

thisiscam commented 2 years ago

Oops. They updated some things related to security: https://slack.com/release-notes/mac.

I haven't fully consumed what they actually did. But there's a chance that this script will no longer work due to the increased security.

Any help is welcomed!

motiwari commented 2 years ago

Thanks for the prompt response; would love to help but unfortunately won't have the time. I'll downgrade to 4.21 for now

thisiscam commented 2 years ago

I have a working solution with my manual modifications. I will try to automate this process and report back.

FWIW, reference to the key change: https://paper.dropbox.com/doc/Electron-ASAR-Integrity-QrEbSA149226qARwYOcp9

motiwari commented 2 years ago

Thank you @thisiscam ! For anyone needing a temporary workaround on Mac, I downloaded Slack v4.21.1 , then ran:

defaults write com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES python math-with-slack.py

and restarted Slack. Warning: this made me log in to all my workspace again

thisiscam commented 2 years ago

@motiwari #29 should address this problem.

I am willing to know if it works for anyone (or not).

motiwari commented 2 years ago

It works now, thank you @thisiscam !

motiwari commented 2 years ago

There seems to be another issue now :( -- whenever quitting the Slack app and reopening, it logs the user out of all Slack workspaces and the user needs to log back in to all of them again

thisiscam commented 2 years ago

@motiwari Thanks for the find. Let's move the discuss to #30.