Review of "NetBird CLI" version 0.2.2 (1)

Details Page Preview

Connect and disconnect NetBird from Quick Settings, and manage peers, networks, profiles and settings in a native window. Uses the netbird CLI; no JSON socket needed. Clipboard access: the extension writes your NetBird IP address, name, a peer's address, or a debug bundle key or command to the clipboard only when you click an address or name in the menu or the NetBird window, a copy button, or a debug bundle result. It never reads the clipboard.

Extension Homepage
https://github.com/jfenal/gnome-shell-extension-netbird-cli

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 2 manual_review 1

Shexli found 3 issues that may need reviewer attention.

EGO-A-005 manual_review

extensions should not access the clipboard directly

Direct clipboard access via `St.Clipboard.get_default()` requires reviewer scrutiny.

Review Guidelines

  • extension.js:99
    St.Clipboard.get_default()

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:138
            this._autoExtendButton = new St.Button({
                style_class: 'button',
                style: 'padding: 6px 12px;',
                child: autoBox,
                can_focus: true,
                accessible_name: 'Auto-extend session',
                x_align: Clutter.ActorAlign.END,
            })
  • extension.js:134
    this._autoExtendIcon = new St.Icon({style_class: 'popup-menu-icon'})
  • extension.js:118
    this._extendItem = new PopupMenu.PopupBaseMenuItem({reactive: false, can_focus: false})
  • extension.js:124
            this._extendNowButton = new St.Button({
                style_class: 'button',
                style: 'padding: 6px 12px;',
                label: 'Extend now',
                can_focus: true,
                x_expand: true,
                x_align: Clutter.ActorAlign.START,
            })
  • extension.js:82
    this._infoSection = new PopupMenu.PopupMenuSection()
  • extension.js:109
    this._profileMenu = new PopupMenu.PopupSubMenuMenuItem('Profile', false)

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:138
            this._autoExtendButton = new St.Button({
                style_class: 'button',
                style: 'padding: 6px 12px;',
                child: autoBox,
                can_focus: true,
                accessible_name: 'Auto-extend session',
                x_align: Clutter.ActorAlign.END,
            })
  • extension.js:134
    this._autoExtendIcon = new St.Icon({style_class: 'popup-menu-icon'})
  • extension.js:118
    this._extendItem = new PopupMenu.PopupBaseMenuItem({reactive: false, can_focus: false})
  • extension.js:124
            this._extendNowButton = new St.Button({
                style_class: 'button',
                style: 'padding: 6px 12px;',
                label: 'Extend now',
                can_focus: true,
                x_expand: true,
                x_align: Clutter.ActorAlign.START,
            })
  • extension.js:82
    this._infoSection = new PopupMenu.PopupMenuSection()
  • extension.js:109
    this._profileMenu = new PopupMenu.PopupSubMenuMenuItem('Profile', false)

All Versions

Version Status
0.2.2 (1) Unreviewed