Review of "Island" version 1

Details Page Preview

Dynamic Island for GNOME Shell: clock, weather, notifications, clipboard history, music, battery health and system meters in one black capsule.

Extension Homepage
https://github.com/yash5800/linux-island

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

Shexli found 6 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

  • impl.js:106
    GLib.file_get_contents(SETTINGS_FILE)
  • impl.js:172
    GLib.file_get_contents(path)
  • impl.js:2367
    GLib.file_get_contents(CLIPS_FILE)
  • impl.js:2876
    GLib.file_get_contents(path)

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

  • impl.js:2403
    St.Clipboard.get_default()
  • impl.js:2444
    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

  • impl.js:595
    this._alertBody = new St.Label({text: '', style_class: 'island-alert-body-text', width: 300, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:590
    this._alertIcon = new St.Icon({icon_size: 22, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:593
    this._alertTitle = new St.Label({text: '', style_class: 'island-alert-title', width: 300, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:650
    this._art = new St.Icon({icon_name: 'audio-x-generic-symbolic', icon_size: 30, style_class: 'island-art-icon'})
  • impl.js:648
            this._artBin = new St.Bin({style_class: 'island-art', x_align: Clutter.ActorAlign.START,
                y_align: Clutter.ActorAlign.CENTER})
  • impl.js:422
    this._badge = new St.Label({text: '', style_class: 'island-badge', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:529
            this._body = new St.BoxLayout({
                style_class: 'island-panel-body-area',
                vertical: true,
                x_expand: true,
            })
  • impl.js:373
            this._capsule = new St.Widget({
                style_class: 'island',
                reactive: true,
                track_hover: true,
                layout_manager: new Clutter.BinLayout(),
                clip_to_allocation: true,
                width: MODES.compact.width,
                height: MODES.compact.h
  • impl.js:408
            this._chargeChip = new St.BoxLayout({
                style_class: 'island-charge-chip',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • impl.js:412
            this._chargeIcon = new St.Icon({
                icon_name: 'battery-charging-symbolic',
                icon_size: 14,
                style_class: 'island-charge-icon',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • impl.js:2250
    this._clipBar = new St.BoxLayout({style_class: 'island-bar', x_expand: true})
  • impl.js:2283
    this._clipEnableBtn = enable
  • impl.js:2286
    this._clipList = new St.BoxLayout({vertical: true, style_class: 'island-clip-list', x_expand: true})
  • impl.js:2290
            this._clipScroll = new St.ScrollView({
                style_class: 'island-clip-scroll',
                x_expand: true,
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.EXTERNAL,
                enable_mouse_scrolling: true,
            })
  • impl.js:2263
            this._clipsEmpty = new St.BoxLayout({vertical: true,
                x_align: Clutter.ActorAlign.CENTER, y_align: Clutter.ActorAlign.CENTER,
                x_expand: true, y_expand: true})
  • impl.js:425
    this._compactArt = new St.Bin({style_class: 'island-mini-art', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:426
            this._compactArtIcon = new St.Icon({
                icon_name: 'audio-x-generic-symbolic',
                icon_size: 13,
                style_class: 'island-mini-art-icon',
            })
  • impl.js:1439
    this._dailyBox = new St.BoxLayout({vertical: true, style_class: 'island-daily'})
  • impl.js:404
    this._dot = new St.Widget({style_class: 'island-dot', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:434
    this._eq = new St.BoxLayout({style_class: 'island-eq', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:1437
    this._hourlyBox = new St.BoxLayout({style_class: 'island-hourly', x_expand: true})
  • impl.js:660
    this._musicArtist = new St.Label({text: '', style_class: 'island-music-artist', width: TEXT_W})
  • impl.js:645
    this._musicBody = new St.BoxLayout({vertical: true, style_class: 'island-music', x_expand: true})
  • impl.js:689
    this._musicFill = new St.Widget({style_class: 'island-music-fill', width: 0})
  • impl.js:703
    this._musicProg = prog
  • impl.js:665
            this._musicSpeaker = new St.Icon({
                icon_name: 'audio-volume-high-symbolic',
                icon_size: 22,
                style_class: 'island-music-speaker',
                x_align: Clutter.ActorAlign.END,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • impl.js:658
    this._musicTitle = new St.Label({text: '', style_class: 'island-music-title', width: TEXT_W})
  • impl.js:687
            this._musicTrack = new St.Widget({style_class: 'island-music-track',
                x_expand: true, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:610
    this._notifBar = new St.BoxLayout({style_class: 'island-bar', x_expand: true})
  • impl.js:623
    this._notifList = new St.BoxLayout({vertical: true, style_class: 'island-notif-list', x_expand: true})
  • impl.js:582
    this._panelRoot = root
  • impl.js:536
            this._scroll = new St.ScrollView({
                style_class: 'island-scroll',
                x_expand: true,
                y_expand: true,
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.EXTERNAL,
                enable_mouse_scrolling: true,
            })
  • impl.js:685
            this._seek = new St.Bin({style_class: 'island-music-seek',
                x_expand: true, y_align: Clutter.ActorAlign.CENTER, reactive: true})
  • impl.js:782
    this._settingsCols = new St.BoxLayout({style_class: 'island-settings-cols', x_expand: true})
  • impl.js:786
    this._settingsFoot = new St.BoxLayout({vertical: true, style_class: 'island-settings', x_expand: true})
  • impl.js:746
            this._timerBig = new St.Label({text: '25:00', style_class: 'island-timer-big',
                x_align: Clutter.ActorAlign.CENTER})
  • impl.js:753
    this._timerFill = new St.Widget({style_class: 'island-fill', width: 0})
  • impl.js:758
    this._timerToggle = new St.Button({style_class: 'island-pill-btn island-pill-primary', reactive: true, can_focus: false})
  • impl.js:759
    this._timerToggleLabel = new St.Label({text: 'Start', style_class: 'island-pill-label'})
  • impl.js:750
            this._timerTrack = new St.Widget({style_class: 'island-track island-timer-track',
                x_align: Clutter.ActorAlign.FILL})
  • impl.js:444
    bar

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

  • impl.js:595
    this._alertBody = new St.Label({text: '', style_class: 'island-alert-body-text', width: 300, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:590
    this._alertIcon = new St.Icon({icon_size: 22, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:593
    this._alertTitle = new St.Label({text: '', style_class: 'island-alert-title', width: 300, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:650
    this._art = new St.Icon({icon_name: 'audio-x-generic-symbolic', icon_size: 30, style_class: 'island-art-icon'})
  • impl.js:648
            this._artBin = new St.Bin({style_class: 'island-art', x_align: Clutter.ActorAlign.START,
                y_align: Clutter.ActorAlign.CENTER})
  • impl.js:422
    this._badge = new St.Label({text: '', style_class: 'island-badge', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:529
            this._body = new St.BoxLayout({
                style_class: 'island-panel-body-area',
                vertical: true,
                x_expand: true,
            })
  • impl.js:408
            this._chargeChip = new St.BoxLayout({
                style_class: 'island-charge-chip',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • impl.js:412
            this._chargeIcon = new St.Icon({
                icon_name: 'battery-charging-symbolic',
                icon_size: 14,
                style_class: 'island-charge-icon',
                y_align: Clutter.ActorAlign.CENTER,
            })
  • impl.js:2250
    this._clipBar = new St.BoxLayout({style_class: 'island-bar', x_expand: true})
  • impl.js:2283
    this._clipEnableBtn = enable
  • impl.js:2286
    this._clipList = new St.BoxLayout({vertical: true, style_class: 'island-clip-list', x_expand: true})
  • impl.js:2290
            this._clipScroll = new St.ScrollView({
                style_class: 'island-clip-scroll',
                x_expand: true,
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.EXTERNAL,
                enable_mouse_scrolling: true,
            })
  • impl.js:2263
            this._clipsEmpty = new St.BoxLayout({vertical: true,
                x_align: Clutter.ActorAlign.CENTER, y_align: Clutter.ActorAlign.CENTER,
                x_expand: true, y_expand: true})
  • impl.js:425
    this._compactArt = new St.Bin({style_class: 'island-mini-art', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:426
            this._compactArtIcon = new St.Icon({
                icon_name: 'audio-x-generic-symbolic',
                icon_size: 13,
                style_class: 'island-mini-art-icon',
            })
  • impl.js:1439
    this._dailyBox = new St.BoxLayout({vertical: true, style_class: 'island-daily'})
  • impl.js:404
    this._dot = new St.Widget({style_class: 'island-dot', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:434
    this._eq = new St.BoxLayout({style_class: 'island-eq', y_align: Clutter.ActorAlign.CENTER})
  • impl.js:1437
    this._hourlyBox = new St.BoxLayout({style_class: 'island-hourly', x_expand: true})
  • impl.js:660
    this._musicArtist = new St.Label({text: '', style_class: 'island-music-artist', width: TEXT_W})
  • impl.js:645
    this._musicBody = new St.BoxLayout({vertical: true, style_class: 'island-music', x_expand: true})
  • impl.js:689
    this._musicFill = new St.Widget({style_class: 'island-music-fill', width: 0})
  • impl.js:703
    this._musicProg = prog
  • impl.js:665
            this._musicSpeaker = new St.Icon({
                icon_name: 'audio-volume-high-symbolic',
                icon_size: 22,
                style_class: 'island-music-speaker',
                x_align: Clutter.ActorAlign.END,
                y_align: Clutter.ActorAlign.CENTER,
            })
  • impl.js:658
    this._musicTitle = new St.Label({text: '', style_class: 'island-music-title', width: TEXT_W})
  • impl.js:687
            this._musicTrack = new St.Widget({style_class: 'island-music-track',
                x_expand: true, y_align: Clutter.ActorAlign.CENTER})
  • impl.js:610
    this._notifBar = new St.BoxLayout({style_class: 'island-bar', x_expand: true})
  • impl.js:623
    this._notifList = new St.BoxLayout({vertical: true, style_class: 'island-notif-list', x_expand: true})
  • impl.js:582
    this._panelRoot = root
  • impl.js:536
            this._scroll = new St.ScrollView({
                style_class: 'island-scroll',
                x_expand: true,
                y_expand: true,
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.EXTERNAL,
                enable_mouse_scrolling: true,
            })
  • impl.js:685
            this._seek = new St.Bin({style_class: 'island-music-seek',
                x_expand: true, y_align: Clutter.ActorAlign.CENTER, reactive: true})
  • impl.js:782
    this._settingsCols = new St.BoxLayout({style_class: 'island-settings-cols', x_expand: true})
  • impl.js:786
    this._settingsFoot = new St.BoxLayout({vertical: true, style_class: 'island-settings', x_expand: true})
  • impl.js:746
            this._timerBig = new St.Label({text: '25:00', style_class: 'island-timer-big',
                x_align: Clutter.ActorAlign.CENTER})
  • impl.js:753
    this._timerFill = new St.Widget({style_class: 'island-fill', width: 0})
  • impl.js:758
    this._timerToggle = new St.Button({style_class: 'island-pill-btn island-pill-primary', reactive: true, can_focus: false})
  • impl.js:759
    this._timerToggleLabel = new St.Label({text: 'Start', style_class: 'island-pill-label'})
  • impl.js:750
            this._timerTrack = new St.Widget({style_class: 'island-track island-timer-track',
                x_align: Clutter.ActorAlign.FILL})

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

  • impl.js:275
            this._capsule.connect('button-press-event', () => {
                if (this._mode === 'panel')
                    return Clutter.EVENT_PROPAGATE;
                // Tapping a notification banner opens the app that sent it;
                // other live activities open the tab they belong to.
                i
  • impl.js:305
            this._capsule.connect('enter-event', () => {
                this._hovered = true;
                this._onHoverChanged();
                return Clutter.EVENT_PROPAGATE;
            })
  • impl.js:310
            this._capsule.connect('leave-event', () => {
                this._hovered = false;
                this._onHoverChanged();
                return Clutter.EVENT_PROPAGATE;
            })
  • impl.js:270
    this._capsule.connect('notify::hover', () => this._onHoverChanged())
  • impl.js:692
    this._seek.connect('button-press-event', (a, ev) => this._seekEvent(ev, false))
  • impl.js:698
    this._seek.connect('button-release-event', (a, ev) => this._seekEvent(ev, true))
  • impl.js:693
            this._seek.connect('motion-event', (a, ev) => {
                if (this._seeking)
                    return this._seekEvent(ev, false);
                return Clutter.EVENT_PROPAGATE;
            })
  • impl.js:761
    this._timerToggle.connect('clicked', () => this._timerAction())
  • impl.js:2731
                            p.connect('g-properties-changed', () => {
                                if (!this._destroyed && this._tab === 'battery')
                                    this._refreshBatteryView();
                            })
  • impl.js:943
    p.connect('g-properties-changed', () => this._onPlayerChanged())
  • impl.js:944
    p.connect('g-signal', () => this._onPlayerChanged())

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

  • impl.js:1843
            this._alertTimerId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, item.duration, () => {
                this._alertTimerId = 0;
                if (this._mode === 'alert')
                    this._setMode(this._capsule?.hover ? 'peek' : 'compact');
                this._alertTarget = null;
                this._al
  • impl.js:1520
            this._collapseId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, grace, () => {
                this._collapseId = 0;
                if (this._destroyed || !this._capsule)
                    return GLib.SOURCE_REMOVE;
                if (this._capsule.hover)
                    return GLib.SOURCE_REMOVE;
              
  • impl.js:1777
            this._eqTimer = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 260, () => {
                if (this._destroyed) {
                    this._eqTimer = 0;
                    return GLib.SOURCE_REMOVE;
                }
                step = (step + 1) % PATTERN.length;
                this._eqBars.forEach((bar, i) => {
     
  • impl.js:1850
                    GLib.timeout_add(GLib.PRIORITY_DEFAULT, 260, () => {
                        if (this._destroyed || this._mode === 'panel')
                            return GLib.SOURCE_REMOVE;
                        const next = this._activities.shift();
                        if (next)
                            

All Versions

Version Status
1 Unreviewed