UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd9 in position 230: invalid continuation byte
$ /usr/bin/gnome-tweaks
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/gtweak/app.py", line 30, in do_activate
self.win = Window(self, model)
File "/usr/lib/python3.6/site-packages/gtweak/tweakview.py", line 45, in init
self._model.load_tweaks(self)
File "/usr/lib/python3.6/site-packages/gtweak/tweakmodel.py", line 104, in load_tweaks
mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
File "/usr/lib/python3.6/site-packages/gtweak/tweaks/tweak_group_startup.py", line 350, in
AutostartListBoxTweakGroup(),
File "/usr/lib/python3.6/site-packages/gtweak/tweaks/tweak_group_startup.py", line 293, in init
if not AutostartFile(df).is_start_at_login_enabled():
File "/usr/lib/python3.6/site-packages/gtweak/utils.py", line 184, in is_start_at_login_enabled
return open(self._user_autostart_file).read().find("X-GNOME-Autostart-enabled=false") == -1
File "/usr/lib/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd9 in position 230: invalid continuation byte
^C
Apparently, somewhere in my files (possibly in a .desktop file in a autostart/ directory?) is a file with a badly coded UTF-8 string and it causes gnome-tweaks 3.28 (and gnome-tweak-tool 3.26 before it, but not 3.24) to wig out and die.