Skip to content

Compatibility with Slack installed from dl.flathub.org #13

@olibre

Description

@olibre

Hi, thank you for your awesome project.

I am using Fedora 29 with GNOME and I have installed Slack using the application GNOME Software that downloads a flatpak package from https://flathub.org/apps/details/com.slack.Slack

I have successfully patched ssb-interop.js and index.js files. But when I restart Slack, I do not see the "Plugins" section at the bottom (below Advance) within the Preferences page...

In order to use your project, must I install Slack for Linux only from https://slack.com/intl/en-fr/downloads/linux ?

My detailed adventure:

$ git clone https://github.com/glajchs/slack-customizations.gitCloning into 'slack-customizations'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 367 (delta 3), reused 8 (delta 3), pack-reused 359
Receiving objects: 100% (367/367), 427.93 KiB | 1.25 MiB/s, done.
Resolving deltas: 100% (244/244), done.

$ cd slack-customizations; ./patch-slack.sh
cat: /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js: No such file or directory
Patching Slack's ssb-interop.js file at /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
[sudo] password for olibre:
tee: /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js: No such file or directory
cat: /usr/lib/slack/resources/app.asar.unpacked/src/static/index.js: No such file or directory
Patching Slack's index.js file at /usr/lib/slack/resources/app.asar.unpacked/src/static/index.js
tee: /usr/lib/slack/resources/app.asar.unpacked/src/static/index.js: No such file or directory

$ locate ssb-interop.js
/var/lib/flatpak/app/com.slack.Slack/x86_64/stable/5eb3cfc6d38e11671e0f1ee0640f696c4ae198339e90c3cae3b075e054a0d0fd/files/extra/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js

$ SLACK_INSTALLATION_PATH=/var/lib/flatpak/app/com.slack.Slack/x86_64/stable/5eb3cfc6d38e11671e0f1ee0640f696c4ae198339e90c3cae3b075e054a0d0fd/files/extra/lib/slack/resources ./patch-slack.sh
Patching Slack's ssb-interop.js file at /var/lib/flatpak/app/com.slack.Slack/x86_64/stable/5eb3cfc6d38e11671e0f1ee0640f696c4ae198339e90c3cae3b075e054a0d0fd/files/extra/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js
Patching Slack's index.js file at /var/lib/flatpak/app/com.slack.Slack/x86_64/stable/5eb3cfc6d38e11671e0f1ee0640f696c4ae198339e90c3cae3b075e054a0d0fd/files/extra/lib/slack/resources/app.asar.unpacked/src/static/index.js
ln: failed to create symbolic link '/home/olibre/.slack/slack-customizations': File exists

$ file /home/olibre/.slack/slack-customizations
/home/olibre/.slack/slack-customizations: symbolic link to /home/olibre/dev/github/slack-customizations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions