Gnome Tweaks crashes because of Unicode error

For quite some time now I can’t open gnome-tweaks. When I launch it from the app launcher nothing happens. When I start it from the terminal this is the output:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/gtweak/app.py", line 51, in do_activate
    self.win = Window(self, model)
  File "/usr/lib/python3.9/site-packages/gtweak/tweakview.py", line 58, in __init__
    self._model.load_tweaks(self)
  File "/usr/lib/python3.9/site-packages/gtweak/tweakmodel.py", line 107, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib/python3.9/site-packages/gtweak/tweaks/tweak_group_startup.py", line 352, in <module>
    AutostartListBoxTweakGroup(),
  File "/usr/lib/python3.9/site-packages/gtweak/tweaks/tweak_group_startup.py", line 295, in __init__
    if not AutostartFile(df).is_start_at_login_enabled():
  File "/usr/lib/python3.9/site-packages/gtweak/utils.py", line 193, in is_start_at_login_enabled
    return open(self._user_autostart_file).read().find("X-GNOME-Autostart-enabled=false") == -1
  File "/usr/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 156: invalid continuation byte

Language: English
Formats (Region): US

Found this bug report upstream:

1 Like