Review of "Xset Toggle" version 1

Details Page Preview

Disables screen blanking when an application request it

Extension Homepage
https://github.com/michelinux8

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:17
            this._icon = new St.Icon({
                icon_name: 'video-display-symbolic',
                style_class: 'system-status-icon',
            })

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:17
            this._icon = new St.Icon({
                icon_name: 'video-display-symbolic',
                style_class: 'system-status-icon',
            })

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:24
            this._indicator.connect('button-press-event', () => {
                if (this._enabled) {
                    // Disattiva il DPMS (Disabilita il risparmio energetico)
                    GLib.spawn_command_line_async('xset -dpms s off');
                    
                    // Cambia icona in monitor "bar

All Versions

Version Status
1 Unreviewed