This is a multi-part message in MIME format.
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/
netusage@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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I try to use the desklet Network usage monitor which I can
download using the Desklet control.</p>
<p>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.<br>
</p>
<p>Looking into the logs with journalctl, the following error
message is shown 3 times every 2 seconds:</p>
<p>Jan 14 08:07:58 laptop1 cinnamon[2643]: JS ERROR: TypeError:
Clutter.Texture is not a constructor<br>
_updateGraph/<@/home/chris/.local/share/cinnamon/desklets/
netusage@30yavash.com/4.0/desklet.js:144:29<br>
spawnCommandLineAsync/<@/usr/share/cinnamon/js/misc/util.js:206:17</p>
<p>The code around line 144 in desklet.js is:</p>
<p> if (this._device != "null") {<br>
if (!this.useExtendedDisplay) {
this.extendedDisplay = "-s" };<br>
let image =
`${path}/vnstatImage_${this._device}_${this.extendedDisplay}.png`;<br>
let command = 'vnstati ' + this.extendedDisplay + '
-ne -i ' + this._device + ' -o ' + image ;<br>
// GLib.spawn_command_line_async(command);<br>
<br>
Util.spawnCommandLineAsync(command, () => {<br>
let l = new Clutter.BinLayout();<br>
let b = new Clutter.Box();<br>
let c = new
Clutter.Texture({keep_aspect_ratio: true, filter_quality: 2,
filename: image });<br>
b.set_layout_manager(l);<br>
<b> b.add_actor(c);</b><br>
this.imageWidget.destroy_all_children();<br>
this.imageWidget.set_child(b);<br>
});<br>
}<br>
</p>
<p><br>
</p>
<p>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.</p>
<p>I read that whole Clutter is already unmaintained. Does it look
like those Clutter based Cinnamon stuff is slowly fading out?</p>
<p>BR</p>
<p>Chris<br>
</p>
</body>
</html>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)