Skip to content

Commit

Permalink
Bugfixes (#6951)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiux authored Mar 3, 2025
1 parent 7928645 commit d5df78c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
3 changes: 3 additions & 0 deletions SpiceSpy@claudiux/files/SpiceSpy@claudiux/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v5.2.4~20250303
* Bugfix in the `spices-cache-init.sh` script.

### v5.2.3~20250303
* Does not try to translate null messages from other Spices. This also helps avoid black screens.
* Bugfix.
Expand Down
5 changes: 3 additions & 2 deletions SpiceSpy@claudiux/files/SpiceSpy@claudiux/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ class SpiceSpy extends Applet.TextIconApplet {

let sec = Math.round(this.update_interval * 3600);
this.loopId = timeout_add_seconds(sec, () => { this.loop() });
this.issuesLoopId = timeout_add(500, () => { this.issuesJobs_loop(); return (this.issuesJobsList.length > 0 && this.is_looping); });
this.issuesLoopId = timeout_add_seconds(5, () => { this.issuesJobs_loop(); return (this.issuesJobsList.length > 0 && this.is_looping); });
//~ return this.is_looping;
} // End of loop

Expand All @@ -681,7 +681,7 @@ class SpiceSpy extends Applet.TextIconApplet {

/**
* renew_caches():
* Check if the local caches are older than 12 minutes.
* Check if the local caches are older than 15 minutes.
* If this is the case, local caches are renewed using CACHE_UPDATER.
*/
renew_caches() {
Expand All @@ -699,6 +699,7 @@ class SpiceSpy extends Applet.TextIconApplet {
}
} else {
Util.spawnCommandLineAsync(CACHE_INIT);
break // CACHE_INIT calls CACHE_UPDATER --update-all.
}
}
} // End of renew_caches
Expand Down
2 changes: 1 addition & 1 deletion SpiceSpy@claudiux/files/SpiceSpy@claudiux/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"uuid": "SpiceSpy@claudiux",
"name": "SpiceSpy",
"description": "Notifies you when there's a change to your favorite Spices on the website.",
"version": "5.2.3",
"version": "5.2.4",
"max-instances": 1,
"author": "claudiux"
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash
UUID="SpicesUpdate@claudiux"
for type in "action" "applet" "desklet" "extension" "theme"; do {
mkdir -p $HOME/.cache/cinnamon/spices/$type
echo "{}" > $HOME/.cache/cinnamon/spices/$type/index.json
[ -d $HOME/.cache/cinnamon/spices/$type ] || {
mkdir -p $HOME/.cache/cinnamon/spices/$type
}
[ -f $HOME/.cache/cinnamon/spices/$type/index.json ] || {
echo "{}" > $HOME/.cache/cinnamon/spices/$type/index.json
}
}; done

$HOME/.local/share/cinnamon/applets/$UUID/scripts/spices-cache-updater.py --update-all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { Pixbuf } = imports.gi.GdkPixbuf;
//Cogl:
const { PixelFormat } = imports.gi.Cogl;
//PopupMenu:
const { PopupMenuManager, PopupMenuItem, PopupSeparatorMenuItem, PopupIndicatorMenuItem, PopupIconMenuItem, PopupSubMenuMenuItem } = imports.ui.popupMenu;
const { PopupMenu, PopupMenuManager, PopupMenuItem, PopupSeparatorMenuItem, PopupIndicatorMenuItem, PopupIconMenuItem, PopupSubMenuMenuItem } = imports.ui.popupMenu;
//Lang:
const Lang = imports.lang;
//GLib:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 7.8.3~20250303
* Minor bugfix.

### 7.8.2~20250303
* Does not try to translate null messages from other spices. This also helps avoid black screens.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Spices Update",
"max-instances": "1",
"hide-configuration": false,
"version": "7.8.2",
"version": "7.8.3",
"description": "Warns you when installed Spices (actions, applets, desklets, extensions, themes) require an update or new Spices are available.",
"multiversion": true,
"cinnamon-version": [
Expand Down

0 comments on commit d5df78c

Please sign in to comment.