Review of "Ajar" version 1.0.0 (1)

Details Page Preview

Quick Settings toggle for passwordless sudo, with an amber door in the top bar while it is on. Requires the Ajar package, installed separately from https://github.com/techbysakh963/ajar (a .deb for Ubuntu, Debian and Kali). This extension contains no scripts or binaries. It only runs the root-owned ajar command (/usr/bin/ajar or /usr/local/bin/ajar). To turn passwordless sudo on, that command asks polkit for your password (pkexec) and runs a fixed, root-owned helper in /usr/libexec/ajar. Turning it off needs no password from your own session. Without the package, the tile shows "Not installed".

Extension Homepage
https://github.com/techbysakh963/ajar

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 3

Shexli found 3 issues that may need reviewer attention.

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:36
    this._hint = new PopupMenu.PopupMenuItem('', {reactive: false, can_focus: false})
  • extension.js:24
    this._onItems = new PopupMenu.PopupMenuSection()
  • extension.js:29
    this._openItems = new PopupMenu.PopupMenuSection()

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:36
    this._hint = new PopupMenu.PopupMenuItem('', {reactive: false, can_focus: false})
  • extension.js:24
    this._onItems = new PopupMenu.PopupMenuSection()
  • extension.js:29
    this._openItems = new PopupMenu.PopupMenuSection()

EGO-L-004 warning

main loop sources should be removed in disable()

Main loop sources assigned in `enable()` are missing matching removals in `disable()` or its helper methods.

Remove main loop sources

  • extension.js:159
            this._debounce = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 300, () => {
                this._debounce = 0;
                this.refresh();
                return GLib.SOURCE_REMOVE;
            })
  • extension.js:143
            this._poll = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, POLL_SECONDS, () => {
                this.refresh();
                return GLib.SOURCE_CONTINUE;
            })

All Versions

Version Status
1.0.0 (2) Unreviewed
1.0.0 (1) Rejected

Previous Reviews on this Version

techbysakh auto- rejected
Auto-rejected because of new version 1.0.0 (2) was uploaded