• Alberts Muktupāvels's avatar
    general: fix running Tweaks outside GNOME Shell · 0c53c98f
    Alberts Muktupāvels authored
    Outside GNOME Shell, Tweaks 3.30.1 crashes:
    
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/gtweak/app.py", line 30, in do_activate
        self.win = Window(self, model)
      File "/usr/lib/python3/dist-packages/gtweak/tweakview.py", line 38, in __init__
        self._model.load_tweaks(self)
      File "/usr/lib/python3/dist-packages/gtweak/tweakmodel.py", line 104, in load_tweaks
        mods = __import__("gtweak.tweaks", globals(), locals(), tweak_files, 0)
      File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_general.py", line 14, in <module>
        _shell_not_ubuntu = _shell.mode != 'ubuntu'
    AttributeError: 'NoneType' object has no attribute 'mode'
    0c53c98f
Name
Last commit
Last update
..
tweaks Loading commit data...
__init__.py Loading commit data...
app.py Loading commit data...
defs.py.in Loading commit data...
egowrapper.py Loading commit data...
gsettings.py Loading commit data...
gshellwrapper.py Loading commit data...
gtksettings.py Loading commit data...
meson.build Loading commit data...
tweakmodel.py Loading commit data...
tweakview.py Loading commit data...
utils.py Loading commit data...
widgets.py Loading commit data...