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
This commit is contained in:
Manuel Selinger
2023-10-10 14:06:04 +02:00
committed by GitHub
parent 54ae50c51b
commit 4465c14786
15 changed files with 111 additions and 129 deletions

View File

@@ -1,11 +1,10 @@
// Provide sensor data from liquidctl.
import GLib from 'gi://GLib';
const GLib = imports.gi.GLib;
import CommandLineUtil from './commandLineUtil.js';
const Me = imports.misc.extensionUtils.getCurrentExtension();
const commandLineUtil = Me.imports.commandLineUtil;
export default class LiquidctlUtil extends CommandLineUtil {
var LiquidctlUtil = class extends commandLineUtil.CommandLineUtil {
constructor() {
super();
const path = GLib.find_program_in_path('liquidctl');