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/", line 51, in do_activate = Window(self, model)
  File "/usr/lib/python3.9/site-packages/gtweak/", line 58, in __init__
  File "/usr/lib/python3.9/site-packages/gtweak/", line 107, in load_tweaks
    mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
  File "/usr/lib/python3.9/site-packages/gtweak/tweaks/", line 352, in <module>
  File "/usr/lib/python3.9/site-packages/gtweak/tweaks/", line 295, in __init__
    if not AutostartFile(df).is_start_at_login_enabled():
  File "/usr/lib/python3.9/site-packages/gtweak/", 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/", 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