How to reduce logs from the Slack desktop app

Share on:

The problem

Slack desktop app on linux is incredibely badly behaved and will stuff your system logfiles with an extraordinaty amount of garbage.

There is no option available in the configuration pannel of the app to reduce that.

The solution

  1. Disable the autostart feature in File > Preference > Advanced
  2. Copy the desktop shortcut to your local configuration (this steps allows you to have the change persisting an upgrade of the package when slack release a new version)
1cp /usr/share/applications/Slack.desktop /home/<username>/.local/share/applications/
  1. edit the file at the .local/share location to override the command line options and cut the verbiage by adding the -s and -g error options
1Exec=/usr/bin/slack -s -g error %U