usage

usage 0.34.2

工具與目錄
在這頁

新功能 2 項

01

Windows 版改用 Pillow 13.0.0,補上圖片解碼漏洞

在 Windows 上用 usage 的人,工作列那個額度數字和系統匣圖示,背後是靠 Pillow(Python 的繪圖套件)畫出來的。原本用的 Pillow 12.3.0,圖片解碼部分有 9 個已知漏洞,其中 1 個屬嚴重等級。usage 只畫自己的圖示,從不打開外來的圖片,所以這些漏洞原本就碰不太到它。⟦就像家裡的門鎖被通報有瑕疵,雖然你從不把鑰匙借人,還是順手換了新鎖。⟧現在 Windows 版改用 Pillow 13.0.0;從 PyPI 安裝 usage-cli[windows] 時,也會要求 Pillow 13.0.0 以上,裝的時候會一起升級。

官方原文

**The Windows build ships Pillow 13.0.0.** Pillow 12.3.0, which draws the Windows tray icon and taskbar quota label, had nine known vulnerabilities in its image decoders, one of them critical. usage only draws its own icons and never opens images from elsewhere, but installing usage-cli[windows] from PyPI now requires Pillow 13.0.0 or later as well.

02

沒反應的「Gemini ⇄」按鈕又藏起來了,心電圖面板英文按鈕不再爆字

畫面上出現一顆按了沒反應的按鈕,很容易讓人以為程式壞了。「Gemini ⇄」按鈕本來只在 Antigravity 有兩組以上額度時才出現,但 v0.34.1 在預設面板替它換了新樣式,新樣式蓋掉了隱藏效果。⟦好比店家換了新招牌,卻忘了把「本日公休」的牌子掛回去,客人推門才發現沒人;現在牌子掛好了,只有一組額度時按鈕會照舊藏起來。⟧心電圖佈景的英文版也有擠字問題:底部「Set Up Status Line」跟 Refresh、Quit 排在同一列放不下,字跑出按鈕外,現在按鈕文字會自動換行。

官方原文

**The Gemini ⇄ button hides again when Antigravity has only one quota group.** v0.34.1 restyled it in the default panel and the new style overrode its hidden state, so it showed a button that did nothing.

**Heart Monitor's English footer buttons keep their text inside.** "Set Up Status Line" did not fit next to Refresh and Quit; button labels now wrap.