Cinnamon Applets, Desklets & Extensions unable to update - DSB

DeLinuxCo Service Bulletin:

With Cinnamon 6.6.7 and 6.6.8, there is an issue with Applets, Extensions and Desklets not being able to update. An error of
"ini() argument must be a string..."

There are two ways to fix, one is to download the spice from https://cinnamon-spices.linuxmint.com/
and place them accordingly in ~/.local/share/cinnamon/**

The second option is to edit the Spices.py file.

sudo nano /usr/share/cinnamon/cinnamon-settings/bin/Spices.py

Replacing line 423, from:

            totalSize = int(response.headers.get('content-length'))

to:

            # totalSize = int(response.headers.get('content-length'))
            content_length = response.headers.get('content-length')
            totalSize = int(content_length) if content_length is not None else -1

 

More details here: Applet/Extension/Desklet/Theme manager crashes with TypeError: int() argument must be ... not 'NoneType' when server response has no content-length header · Issue #13868 · linuxmint/cinnamon · GitHub

3 Likes