Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] BetterDiscord crashes when themes.json is readonly #1368

Closed
FlafyDev opened this issue Aug 11, 2022 · 0 comments
Closed

[Bug] BetterDiscord crashes when themes.json is readonly #1368

FlafyDev opened this issue Aug 11, 2022 · 0 comments

Comments

@FlafyDev
Copy link

Describe the Bug

If the file ~/.config/BetterDiscord/data/stable/themes.json is readonly, BetterDiscord crashes on launch.
I assume it occurs with other config files as well.

To Reproduce

  1. install BetterDiscord and a theme and enable it.
  2. close discord.
  3. run chmod -w ~/.config/BetterDiscord/data/stable/themes.json.
  4. run discord.
  5. wait until discord loads and crashes.

Expected Behavior

I expect for BetterDiscord to be able to handle read-only config files such as themes.json and when it needs to change them, show a message or ignore the request, but not crash.

Discord Version

stable 0.0.18

Additional Context

I'm making a nix home-manager module to declaratively configure BetterDiscord and the files it generates must be read-only. So it generates themes.json as a read-only file and there is nothing I can do about it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants