-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix deprecation warnings on 3.30 #97
Comments
Seems this patch worked on my side too (Manjaro Gnome)...thank you! |
These changes appear in #101 |
Thanks a lot for looking into this, and for providing the solution! Do you know how far back this works? I just want to make sure we don't break the extension on old versions. At the moment, we claim to support Gnome Shell 3.18 to 3.30. |
I personally have no idea since I'm not an expert on GNOME's extension API. Perhaps we could check some version numbers and use the old APIs only for old versions? .. because otherwise my syslog would explode :-) |
This is new as of GJS-1.54. A simple way to handle this in backwards-compatible fashion is like so: if (possibleByteArray instanceof Uint8Array) {
possibleByteArray = imports.byteArray.toString(possibleByteArray);
} I'm pretty sure this how gnome-shell does it, too. |
It seems like the current behavior of
UInt8Array.toString()
has been deprecated. GNOME 3.30 keeps producing a warning message about this into syslog. The following patch fixed the problem for me, but I'm not an expert on GNOME extension programming, so I'd like to leave this to the author:Note: There was one more place that calls
toString()
but I wasn't sure if it is for anUInt8Array
, so I left it as it is.The text was updated successfully, but these errors were encountered: