Review of "Bing Wallpaper Folder" version 1

Details Page Preview

Browse and apply wallpapers from the folder that Bing daily images are downloaded to. Automatically fetches the daily Bing image, lists every image in your wallpaper folder with on-demand thumbnails, search and copyright info, and stores metadata in a portable sidecar JSON file that travels with the folder. 以壁纸文件夹为事实来源的 Bing 每日壁纸扩展:自动拉取每日 Bing 图片,在面板菜单中浏览文件夹内全部图片(按需缩略图、搜索、版权信息),元数据存为可随文件夹迁移的 sidecar JSON。

Extension Homepage
https://github.com/TorosFanny/bing-wallpaper-folder

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 6

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

  • library.js:131
    this._file.load_contents(null)

EGO-P-006 warning

unnecessary build and translation artifacts should not be shipped

Compiled GSettings schemas should not be shipped for 45+ packages.

Don't include unnecessary files

  • schemas/gschemas.compiled
    schemas/gschemas.compiled

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:230
    this._headerImage = new St.Widget({style_class: 'bwf-header-image'})
  • extension.js:239
            this._headerMeta = new St.Label({
                style_class: 'bwf-header-meta',
                x_expand: true,
                text: '',
            })
  • extension.js:233
            this._headerTitle = new St.Label({
                style_class: 'bwf-header-title',
                x_expand: true,
                text: '加载中…',
            })
  • extension.js:307
    this._listSection = new PopupMenu.PopupMenuSection()
  • extension.js:308
            this._scroll = new St.ScrollView({
                style_class: 'bwf-scroll',
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.AUTOMATIC,
            })
  • extension.js:289
            this._searchEntry = new St.Entry({
                hint_text: '搜索标题 / 日期 / 文件名…',
                style_class: 'bwf-search-entry',
                can_focus: true,
                x_expand: true,
            })
  • extension.js:320
            this._statusItem = new PopupMenu.PopupMenuItem('', {
                reactive: false, can_focus: false, style_class: 'bwf-status',
            })

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:230
    this._headerImage = new St.Widget({style_class: 'bwf-header-image'})
  • extension.js:239
            this._headerMeta = new St.Label({
                style_class: 'bwf-header-meta',
                x_expand: true,
                text: '',
            })
  • extension.js:233
            this._headerTitle = new St.Label({
                style_class: 'bwf-header-title',
                x_expand: true,
                text: '加载中…',
            })
  • extension.js:307
    this._listSection = new PopupMenu.PopupMenuSection()
  • extension.js:308
            this._scroll = new St.ScrollView({
                style_class: 'bwf-scroll',
                hscrollbar_policy: St.PolicyType.NEVER,
                vscrollbar_policy: St.PolicyType.AUTOMATIC,
            })
  • extension.js:289
            this._searchEntry = new St.Entry({
                hint_text: '搜索标题 / 日期 / 文件名…',
                style_class: 'bwf-search-entry',
                can_focus: true,
                x_expand: true,
            })
  • extension.js:54
    this._settings = extension.getSettings()
  • extension.js:320
            this._statusItem = new PopupMenu.PopupMenuItem('', {
                reactive: false, can_focus: false, style_class: 'bwf-status',
            })

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:159
            this._monitor.connect('changed', (_m, file) => {
                // 写 sidecar 元数据会触发本目录事件,过滤掉避免重载循环
                if (file && file.get_basename() === Lib.METADATA_FILENAME)
                    return;
                this._onFolderChanged();
            })
  • extension.js:126
            this.menu.connect('open-state-changed', (_m, open) => {
                if (open)
                    this._populateVisibleThumbs();
                else
                    this._releaseThumbs();
            })

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:505
            this._thumbLoaderId = GLib.idle_add(GLib.PRIORITY_DEFAULT_IDLE, () => {
                let budget = THUMBS_PER_IDLE;
                while (budget-- > 0 && this._thumbQueue.length) {
                    const job = this._thumbQueue.shift();
                    if (!job.image.get_parent())
                     

All Versions

Version Status
2 Unreviewed
1 Rejected

Previous Reviews on this Version

QuantumSpirit auto- rejected
Auto-rejected because of new version 2 was uploaded