linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.58k stars 745 forks source link

cs_keyboard.py: Skip invalid bindings #12396

Closed rcalixte closed 3 weeks ago

rcalixte commented 2 months ago

It is possible to remove Spices manually by removing the associated directories rather than using the appropriate module. This results in the bindings still being stored internally. When loading the Keyboard module and this scenario has occurred, it results in a failure due to the matching files having been removed. We leave the mappings internally so that if the matching Spice is reinstalled, the previous settings will be retained.