Hello,

that issue was already reported "upstream" and is fixed in the meantime. The issue was a compatibility issue with Clutter.

Cheers

On 1/14/24 18:11, Chris Jölly wrote:

Hello,

I try to use the desklet Network usage monitor which I can download using the Desklet control.

It downloads and installs without issues, and when I try to activate it it is not shown on the desktop. vnstat and vnstati are installed.

Looking into the logs with journalctl, the following error message is shown 3 times every 2 seconds:

Jan 14 08:07:58 laptop1 cinnamon[2643]: JS ERROR: TypeError: Clutter.Texture is not a constructor
_updateGraph/<@/home/chris/.local/share/cinnamon/desklets/netus...@30yavash.com/4.0/desklet.js:144:29
spawnCommandLineAsync/<@/usr/share/cinnamon/js/misc/util.js:206:17

The code around line 144 in desklet.js is:

           if (this._device != "null") {
               if (!this.useExtendedDisplay) { this.extendedDisplay = "-s" };                let image = `${path}/vnstatImage_${this._device}_${this.extendedDisplay}.png`;                let command = 'vnstati ' + this.extendedDisplay + ' -ne -i ' + this._device + ' -o ' + image ;
//             GLib.spawn_command_line_async(command);

               Util.spawnCommandLineAsync(command, () => {
                    let l = new Clutter.BinLayout();
                    let b = new Clutter.Box();
                    let c = new Clutter.Texture({keep_aspect_ratio: true, filter_quality: 2, filename: image });
                    b.set_layout_manager(l);
*                    b.add_actor(c);*
                    this.imageWidget.destroy_all_children();
                    this.imageWidget.set_child(b);
                });
             }


I used Alf+F2 and "lg" to get more insights, but was not successful. I can see that Clutter is provided with the package cinnamon-common, but I could not find the definition of Clutter.Texture. But I am not a Javscript developer, so just tried to grep around a little bit.

I read that whole Clutter is already unmaintained. Does it look like those Clutter based Cinnamon stuff is slowly fading out?

BR

Chris

Reply via email to