Review of "Gnomlets" version 1.0 (1)

Details Page Preview

macOS-style desktop widgets: clock, calendar, weather, system, network, disks, processes, media, battery and notes. They sit on the wallpaper, below the windows, and can be dragged, resized and snapped to each other.

Extension Homepage
https://github.com/prietus/gnomlets

No comments.

FAQ

Files

Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.

Shexli (experimental) warning 4

Shexli found 4 issues that may need reviewer attention.

EGO-X-004 warning

extensions should avoid synchronous file IO in shell code

Shell code should avoid synchronous file IO APIs like `GLib.file_get_contents()` and `Gio.File.load_contents()`.

File Operations

  • lib/sysinfo.js:10
    GLib.file_get_contents(path)

EGO-L-002 warning

objects created by extension should be destroyed in disable()

Objects assigned in `enable()` are missing matching `.destroy()` calls in `disable()` or its helper methods.

Destroy all objects

  • extension.js:405
    this._menuManager = new PopupMenu.PopupMenuManager(this.layer)
  • widgets/note.js:25
            this._entry = new St.Entry({
                style: 'min-width: 420px; min-height: 180px;',
                can_focus: true,
                x_expand: true,
            })

EGO-L-005 warning

owned object references should be released in disable()

Owned references that are cleaned up in `disable()` should also be released with `null` or `undefined`.

Destroy all objects

  • extension.js:405
    this._menuManager = new PopupMenu.PopupMenuManager(this.layer)
  • extension.js:68
    this.layer = new Clutter.Actor({name: 'gnomlets-layer'})
  • extension.js:63
    this.settings = ext.getSettings()
  • widgets/note.js:25
            this._entry = new St.Entry({
                style: 'min-width: 420px; min-height: 180px;',
                can_focus: true,
                x_expand: true,
            })

EGO-L-003 warning

signals connected by extension should be disconnected in disable()

Signals assigned in `enable()` are missing matching disconnect calls in `disable()` or its helper methods.

Disconnect all signals

  • extension.js:497
    it.connect('destroy', () => this._bgItems?.delete(it))
  • widgets/note.js:41
            ct.connect('key-press-event', (_a, e) => {
                const sym = e.get_key_symbol();
                if ((sym === Clutter.KEY_Return || sym === Clutter.KEY_KP_Enter) &&
                    (e.get_state() & Clutter.ModifierType.CONTROL_MASK)) {
                    this._save(onSave);
                    re

All Versions

Version Status
1.0 (1) Unreviewed