11 Commits

Author SHA1 Message Date
Manuel Selinger
ce5a396397 Address Issues from Review in #267 (#269)
* replace global.log() with logError()

* remove run_dispose calls

    This function should only be called from object system implementations.

https://gjs-docs.gnome.org/gobject20~2.0/gobject.object#method-run_dispose

* use pkexec instead of sudo for ipmi-sensors
2023-10-20 08:53:40 +03:00
Manuel Selinger
4465c14786 Migrate Plugin to Gnome 45 Shell (#267)
* Migrate Plugin to Gnome 45 Shell

* Use TextDecoder instead of ByteArray or toString()

* use the Glib timeout functions

* remove unused imports
2023-10-10 15:06:04 +03:00
Jonas Malaco
cb33301cc7 commandLineUtil: toggle _updated after the callback returns
The callback can be used to process the received data a single time, and
in that case this._updated should only be toggled after the callback has
completed, since other methods may depend on its side effects.

In other scenarios the order does not matter (either way).
2021-04-28 06:38:29 -03:00
Andy Holmes
e37b6c6c6e commandLineUtil: refactor to use GSubprocess
This means doing all IO in a background thread, rather than popping
lines synchronously off a pipe.
2021-04-25 21:49:36 -07:00
UshakovVasilii
888ce3643e remove error from command output #114 2019-05-12 18:53:28 +03:00
UshakovVasilii
6f9d334cef update for gnome-shell 3.32 #126 2019-03-20 10:28:11 +03:00
Thomas Ingvarsson
b3affd57dc Correct usage of toString on Uint8Array
According to warning given today with gnome 3.30:
"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 explicitly call ByteArray.toString(array)."
2018-09-18 21:52:08 +02:00
UshakovVasilii
5f2569c186 fix gjs errors #98 2018-09-18 13:19:09 +03:00
Pavel
da3af4da27 Added stderr to output for parsing since on Fedora 28 nvidia-smi output goes to stderr 2018-05-12 00:16:17 +03:00
UshakovVasilii
bf029d7eed update UI every 250ms if necessary, resolve #74 2018-01-20 08:26:50 +03:00
UshakovVasilii
6a4501129b Improve code 2014-07-01 23:58:27 +04:00