punkllka.blogg.se

Slack app icon
Slack app icon









# Only change the following values if the names of the icons change $currentSlackVersionDir = "$env:LOCALAPPDATA\slack\app-4.3.4" # (by default the Slack installer puts it in %LocalAppData%) # Set the path to the current Slack version here The following short PowerShell script will 'disable' the notifications dot by replacing the icons with a dot with a blank one (as suggested by other answers). To provide a solution for Windows users, too: Look for code using the icon file - const O = nt.resolve(_dirname, "resources", 'slack-taskbar-$.ico`) You want to search for setTrayIcon function in the main.*.js file (in 4.27 it's named ). More elaborate but hopefully future-proof answer.

slack app icon

Follow his answer for extracting and packing files using asar. This is updated version of Dmitry S answer with the change of how the code is updated. Sudo cp -r ~/tmp/slack /usr/lib/slack/resources/ Sudo cp ~/tmp/app.asar /usr/lib/slack/resources/app.asar Sudo rm /usr/lib/slack/resources/app.asar

slack app icon

Sed -i 's/unreads>0/false/g' ~/tmp/slack/dist/*.js

  • asar installed globally through npm: npm install -g asarĪsar extract /usr/lib/slack/resources/app.asar ~/tmp/slack.
  • asar is not run with super user privileges, which is useful for people using npm-g_nosudo.
  • js files, since the code seems to have been split up in the latest version.
  • unreads>0 is replaced with false, so slack should always think there are no unread messages.
  • This is an improvement on Dmitry S.'s answer.

    slack app icon

    Add your scripts here, and clearly state the latest version on which it works, newest on top. Until then, this should be a community wiki, to prevent a new answer from being generated for each new slack version. We should all team up and submit a feature request (or maybe this could even be considered a bug – it's clearly bugging people). The long answer is that exactly how to hack it will differ from one version to the next, as they update the source code. The short answer is: You can't, without hacking slack.











    Slack app icon