Error when trying to change the settings
hmajid2301 opened this issue ยท 1 comments
hmajid2301 commented
Hi ๐,
I am getting the following error when I try to change the settings for this extension
TypeError: method Gtk.CssProvider.load_from_data: At least 2 arguments required, but only 1 passed
Stack trace:
updateStyle@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsWidgets.js:53:21
_append_accel@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:544:22
_init@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:414:14
_init@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:872:15
Row@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:311:4
RuleRow@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:381:4
RuleRowByKeyword@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:870:4
_sync@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:275:40
_initKeywordRules@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:190:18
init@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsCloseWindow.js:54:18
_init@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefs.js:29:64
Prefs@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefs.js:18:5
buildPrefsWidget@/home/haseeb/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefs.js:298:22
_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:32:44
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:124:33
async*_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:368:35
_wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:401:34
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Link to gnome config (if useful): https://gitlab.com/hmajid2301/dotfiles/-/blob/main/gnome/settings.ini
Any help would be greatly appreciated thanks!
hmajid2301 commented
I was able to fix this locally by updating in a stupid way. I am using gnome 43 so it seems this load_from_data
function also expects to args. But I didn't bother to test it much. As Im going to upgrade to 44 soon. So this works temp for now.
if (GnomeVersion.isLessThan44()) {
cssProvider.load_from_data(css, -1);
} else {
cssProvider.load_from_data(css, -1);
}
(In ~/.local/share/gnome-shell/extensions/another-window-session-manager@gmail.com/prefsWidgets.js
)