thisiscam / math-with-slack

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

Not working with flatpak version of Slack on ubuntu #49

Closed Shashankti closed 1 year ago

Shashankti commented 2 years ago

I tried specifying the directory of installation as well but got the following error.

Traceback (most recent call last): File "/home/shashank/math_slack.py", line 1116, in <module> main() File "/home/shashank/math_slack.py", line 1066, in main _, asar_extracted_dir = extract_asar(tmp_dir, app_path) File "/home/shashank/math_slack.py", line 752, in extract_asar asar_extractor = AsarExtractor.open(app_path) File "/home/shashank/math_slack.py", line 502, in open assert header_data_size == 4 AssertionError

thisiscam commented 2 years ago

Is flatpak the same thing as a snap install? #9

github-actions[bot] commented 1 year ago

Inactive for more than 90 days. Closing for now.

roshanshariff commented 1 year ago

If it helps, I had success installing Slack in the user Flatpak installation: flatpak install --user com.slack.Slack, and then using math-with-slack.py on that installation:

python3 math-with-slack.py -a ~/.local/share/flatpak/app/com.slack.Slack/current/active/files/extra/lib/slack/resources/app.asar

You will need to re-run that second step every time Flatpak updates Slack.