cass00 / enhanced-osk-gnome-ext

Enhanced On-Screen Keyboard for Gnome Shell
http://extensions.gnome.org/extension/6595/enhanced-osk/
21 stars 9 forks source link

Do not try unregister original keyboard layouts resource #17

Open michaelgrahamevans opened 3 months ago

michaelgrahamevans commented 3 months ago

The path to the default keyboard layouts does not exist on NixOS and possibly other systems. However, registering and unregistering the default keyboard layouts is not needed as the registered modified layouts resource is accessed with higher priority than the original layouts resource until it is unregistered.

Additionally, the resources were not being unregistered since a reference to the original Gio.Resource object is needed to unregister it. Creating a new resource by loading it from the same path does not create the same resource reference. The unregistering appeared to work because new resources were continuously registered above the old ones.