raphaelquintao / QRedshiftCinnamon

Linux Cinnamon applet to change screen color temperature
https://cinnamon-spices.linuxmint.com/applets/view/313
Apache License 2.0
100 stars 13 forks source link

Error messages in .xsession-errors #78

Open claudiux opened 1 month ago

claudiux commented 1 month ago

This message appears in ~/.xsession-errors when this applet starts:

(cinnamon:2294): Gjs-WARNING **: 23:11:08.600: Some code called array.toString() on a Uint8Array instance. Previously this would have interpreted the bytes of the array as a string, but that is nonstandard. In the future this will return the bytes as comma-separated digits. For the time being, the old behavior has been preserved, but please fix your code anyway to use TextDecoder.
(Note that array.toString() may have been called implicitly.)
0 _parse() ["/usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function":139:6]
1 spawn_command_line_async_promise/<() ["/usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function":162:25]
2 spawn_command_line_async_promise() ["/usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function":146:9]
3 QRedshift() ["/usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function":371:13]
4 main() ["/usr/share/cinnamon/js/misc/fileUtils.js line 211 > Function":1321:9]
5 createApplet() ["/usr/share/cinnamon/js/ui/appletManager.js":597:24]
6 addAppletToPanels() ["/usr/share/cinnamon/js/ui/appletManager.js":372:33]
7 finishExtensionLoad() ["/usr/share/cinnamon/js/ui/appletManager.js":98:13]
8 _init/<() ["/usr/share/cinnamon/js/ui/extension.js":286:31]

Gjs-Message: 23:11:10.426: JS LOG: [LookingGlass/info] Loaded applet qredshift@quintao in 1865 ms

This error seems to come from certain stdout provided by spawn_* functions. Maybe use byte_array_to_string() to avoid this kind of message? See in QUtils.js.