Instant screenshots with annotations: the hotkey (Ctrl+Print by default) freezes the screen at once and opens the rayshot editor over it, where you select a region, draw on it and copy or save it. Needs the rayshot program, installed separately: https://github.com/paranoica/rayshot Clipboard: the rayshot editor puts the screenshot on the clipboard when you press Enter, and the recognised text when you press Ctrl+Shift+C. The extension itself never reads the clipboard.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
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()`.
extension.js:80
GLib.file_get_contents(`/proc/${pid}/stat`)
EGO-A-004 warning
extension files should not contain excessive ungated console logging
File contains 14 ungated console.log/warn/error calls (threshold: 5).
extension.js:278
console.log('rayshot: overlay server gave up earlier, run "rayshot warm off" and "on" to retry')
extension.js:322
console.log('rayshot: overlay server not ready in time, restarting it')
extension.js:368
console.log(`rayshot: overlay server failed ${MAX_FAILURES} times in a row, not restarting it`)
extension.js:376
console.log(`rayshot: overlay server restarts in ${delay}ms`)
extension.js:445
console.log(`rayshot: overlay server speaks protocol ${version}, expected ${PROTOCOL_VERSION}`)
extension.js:467
console.log(`rayshot: session ${overlay.session} failed on the server`)
extension.js:470
console.log(`rayshot: session ${overlay.session} failed before showing, falling back`)
extension.js:504
console.log(`rayshot: overlay server exited (status ${server.proc.get_status()})`)
extension.js:527
console.log(`rayshot: ${overlay.windows.size} overlay window(s) still mapped, unfreezing anyway`)
extension.js:636
console.log('rayshot: screen already frozen, capture dropped')
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.
extension.js:256
this._selfMonitor.connect('changed', (_m, _f, _o, event) => {
if (event === Gio.FileMonitorEvent.CHANGES_DONE_HINT || event === Gio.FileMonitorEvent.CREATED)
this._notifyOnce('updated', UPDATED_TEXT);
})
extension.js:395
notice.connect('destroy', () => {
if (this._copyNotice === notice)
this._copyNotice = null;
})
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.
extension.js:571
this._gcId = GLib.idle_add(GLib.PRIORITY_LOW, () => {
this._gcId = 0;
const started = GLib.get_monotonic_time();
System.gc();
this._trace(started, 'garbage collected');
return GLib.SOURCE_REMOVE;
})
extension.js:1098
this._refocusId = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
this._refocusId = 0;
const overlay = this._overlay;
const focus = global.display.focus_window;
if (!overlay?.shown || overlay.cancelled || overlay.closed || overlay.settleId ||
extension.js:292
this._respawnId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, respawnDelay(this._binMisses++), () => {
this._startServer();
return GLib.SOURCE_REMOVE;
})
extension.js:1195
this._settleId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, SETTLE_INTERVAL_MS, () => {
this._settleId = 0;
this._clickWhenSettled(win, overlay, target, rects, t0, attempt + 1);
return GLib.SOURCE_REMOVE;
})
EGO-L-007 warning
main loop sources should be removed before being recreated
Main loop sources should be removed before creating a new source on the same field.
extension.js:377
this._respawnId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, delay, () => {
this._startServer();
return GLib.SOURCE_REMOVE;
})
| Version | Status |
|---|---|
| 0.4.2 (1) | Unreviewed |