• Connamon: Desklet "Network usage monitor" fills logfiles

    From =?UTF-8?Q?Chris_J=C3=B6lly?=@21:1/5 to All on Sun Jan 14 18:20:01 2024
    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/&lt;@/home/chris/.local/share/cinnamon/desklets/netusage@30yavash.com/4.0/desklet.js:144:29<br>
                                           
    spawnCommandLineAsync/&lt;@/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, () =&gt; {<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)
  • From =?UTF-8?Q?Chris_J=C3=B6lly?=@21:1/5 to All on Sat Jan 20 08:00:01 2024
    This is a multi-part message in MIME format.
    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/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>that issue was already reported "upstream" and is fixed in the
    meantime. The issue was a compatibility issue with Clutter.</p>
    <p>Cheers<br>
    </p>
    <div class="moz-cite-prefix">On 1/14/24 18:11, Chris Jölly wrote:<br>
    </div>
    <blockquote type="cite"
    cite="mid:156148da-7589-471f-a5a0-67b65f17f460@joelly.net">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <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/&lt;@/home/chris/.local/share/cinnamon/desklets/netusage@30yavash.com/4.0/desklet.js:144:29<br>
                                           
    spawnCommandLineAsync/&lt;@/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, () =&gt; {<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>
    </blockquote>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)