Last active
November 8, 2021 16:18
-
-
Save sharshenov/0b5a454ea3282cc779dfce0f93bdab24 to your computer and use it in GitHub Desktop.
ubuntu remove blue dot from slack icon in tray
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://superuser.com/a/1536290 | |
# npm install -g asar | |
set -ex | |
killall slack || true | |
mkdir -p ~/tmp/slack | |
asar extract /usr/lib/slack/resources/app.asar ~/tmp/slack | |
sed -i 's/O="unread"/O="rest"/g' ~/tmp/slack/dist/main.bundle.js | |
sudo rm -rf /usr/lib/slack/resources/app.asar /usr/lib/slack/resources/app.asar.unpacked | |
sudo asar pack ~/tmp/slack /usr/lib/slack/resources/app.asar | |
sudo mv ~/tmp/slack /usr/lib/slack/resources/app.asar.unpacked | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment