update README.md with info on turning off automatic updates
This commit is contained in:
17
README.md
17
README.md
@@ -30,3 +30,20 @@ sudo systemctl start update-discord.service
|
||||
journalctl -u update-discord.service
|
||||
```
|
||||
|
||||
## Stopping automatic updates
|
||||
Discord's stock client prompts you to manually update whenever they release a new version. I originally created this script so that I didn't have to interact with that prompt and download a `.deb` every week.
|
||||
|
||||
However, Discord recently botched one of their linux updates (somewhere around version `0.0.133`, I think) and have yet to publish a fix. While searching for a workaround to that, I learned that [you can disable Discord's forced updates entirely](https://superuser.com/questions/1745556/prevent-discord-from-updating-automatically). Yippee!
|
||||
|
||||
Edit `~/.config/discord/settings.json` to include the following JSON field:
|
||||
|
||||
```json
|
||||
{
|
||||
"SKIP_HOST_UPDATE": true
|
||||
}
|
||||
```
|
||||
|
||||
Then, edit `/usr/share/discord/resources/build_info.json` and change the `version` field to some older version (I used `0.0.131`). You may need to run `killall Discord` and restart the app for changes to take place.
|
||||
|
||||
You can turn off the auto-update script by running `sudo systemctl disable update-discord.timer`. You can also re-enable it by running `sudo systemctl enable update-discord.timer`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user