Review of "Win+V Clipboard" version 1.0 (1)

Details Page Preview

Clipboard history inspired by the Windows Win+V panel. - Keeps track of copied text and images - Pin items: pinned items survive a reboot, the rest is cleared (optionally keep everything) - Search, keyboard navigation and automatic paste (Ctrl+Shift+V in terminals) - Ignores passwords flagged by password managers The default shortcut is Super+V. GNOME uses Super+V to open the notification list, so while the extension is enabled Super+V is removed from that shortcut (Super+M keeps working) and restored when the extension is disabled. This can be turned off in the preferences. History is stored in ~/.local/share/winv-clipboard/.

Extension Homepage
https://github.com/WHYUBM/winv-clipboard

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

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

  • extension.js:204
    GLib.file_get_contents(this.store.imagePath(entry))
  • store.js:31
    GLib.file_get_contents(BOOT_ID_FILE)
  • store.js:79
    GLib.file_get_contents(this._file)

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:75
    St.Clipboard.get_default()

EGO-A-004 warning

extension files should not contain excessive ungated console logging

File contains 7 ungated console.log/warn/error calls (threshold: 5).

No excessive logging

  • store.js:35
    console.warn(`winv-clipboard: cannot read boot_id: ${e.message}`)
  • store.js:82
    console.warn(`winv-clipboard: unreadable history, starting from scratch: ${e.message}`)
  • store.js:266
    console.warn(`winv-clipboard: cannot delete image: ${e.message}`)
  • store.js:284
    console.warn(`winv-clipboard: image cleanup failed: ${e.message}`)
  • store.js:125
    console.error(`winv-clipboard: cannot save image: ${e.message}`)
  • store.js:293
    console.error(e)
  • store.js:319
    console.error(`winv-clipboard: saving failed: ${e.message}`)

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:219
            this._pasteId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, PASTE_DELAY_MS, () => {
                this._pasteId = 0;
                this._sendPasteKeys();
                return GLib.SOURCE_REMOVE;
            })
  • extension.js:165
            this._readId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, READ_DELAY_MS, () => {
                this._readId = 0;
                this._readClipboard();
                return GLib.SOURCE_REMOVE;
            })

All Versions

Version Status
1.0 (1) Unreviewed