User Theme crashes after sleep mode
The extension works as expected after the boot, but if the system goes to sleep mode and then back of it, UT crashes with the following error message:
Jul 04 07:21:39 up gnome-shell[6769]: JS ERROR: Extension user-theme@gnome-shell-extensions.gcampax.github.com: TypeError: Object is of type Atk.StateSet - cannot convert to GFile
loadTheme@resource:///org/gnome/shell/ui/main.js:439:19
_changeTheme@/home/m/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/extension.js:56:14
enable@/home/m/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/extension.js:19:14
_callExtensionEnable@resource:///org/gnome/shell/ui/extensionSystem.js:167:32
_enableAllExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:612:22
_enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:611:37
_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:639:18
_emit@resource:///org/gnome/gjs/modules/core/_signals.js:133:47
_sync@resource:///org/gnome/shell/ui/sessionMode.js:198:14
popMode@resource:///org/gnome/shell/ui/sessionMode.js:166:14
_continueDeactivate@resource:///org/gnome/shell/ui/screenShield.js:502:30
deactivate/<@resource:///org/gnome/shell/ui/screenShield.js:493:44
finish@resource:///org/gnome/shell/gdm/authPrompt.js:523:13
finish@resource:///org/gnome/shell/ui/unlockDialog.js:840:26
deactivate@resource:///org/gnome/shell/ui/screenShield.js:493:26
ScreenShield/</<@resource:///org/gnome/shell/ui/screenShield.js:110:57
_emit@resource:///org/gnome/gjs/modules/core/_signals.js:133:47
_convertToNativeSignal@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:169:19
It is not possible to re-enable it using Gnome Tweaks.
It started happening once Ubuntu 20.04 updated Gnome Shell to 3.36.3
.