Battery session timer with record saving for GNOME Shell
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:581
file.load_contents(null)
extension.js:608
file.load_contents(null)
extension.js:672
file.load_contents(null)
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:226
console.warn(`Battery Session Timer: ошибка отключения сигнала UPower: ${error}`)
extension.js:332
console.warn(`Battery Session Timer: logind недоступен, используется монотонный таймер: ${error}`)
extension.js:362
console.warn(`Battery Session Timer: ошибка отключения сигнала logind: ${error}`)
extension.js:584
console.warn(`Battery Session Timer: повреждён файл рекорда ${this._recordFile}`)
extension.js:662
console.warn(`Battery Session Timer: не удалось удалить файл сессии ${this._sessionFile}: ${error}`)
extension.js:675
console.warn(`Battery Session Timer: повреждён файл настроек ${this._settingsFile}`)
extension.js:257
console.log(`Battery Session Timer: питание было подключено во время сна — сбрасываем сессию`)
extension.js:274
console.log(`Battery Session Timer: заряд увеличился на ${chargeDiff}% (было ${this._resumedChargePercent}%, стало ${currentCharge}%) — сбрасываем сессию`)
extension.js:172
console.error(`Battery Session Timer: не удалось подключиться к UPower: ${error}`)
extension.js:196
console.error(`Battery Session Timer: не удалось получить DisplayDevice: ${error}`)
EGO-M-008 warning
extensions using unlock-dialog must document it in disable() comments
Extensions using `unlock-dialog` should document the reason in `disable()` comments.
extension.js:715
disable() {
if (!this._enabled)
return;
this._tracker.tick(this._nowUs());
const state = this._tracker.snapshot();
this._saveRecordIfDirty();
this._saveSessionState(state);
this._enabled = false;
if (this._timeoutId)
| Version | Status |
|---|---|
| 33 | Unreviewed |
| 32 | Rejected |
| 31 | Rejected |
| 30 | Rejected |
| 29 | Rejected |
| 28 | Rejected |
| 27 | Rejected |
| 26 | Rejected |
| 25 | Rejected |
| 24 | Rejected |
| 23 | Rejected |
| 22 | Rejected |
| 21 | Rejected |
| 20 | Rejected |
| 19 | Rejected |
| 18 | Rejected |
| 17 | Rejected |
| 16 | Rejected |
| 15 | Rejected |
| 14 | Rejected |
| 13 | Rejected |
| 12 | Rejected |
| 11 | Rejected |
| 10 | Rejected |
| 9 | Rejected |
| 8 | Rejected |
| 7 | Rejected |
| 6 | Rejected |
| 5 | Rejected |
| 4 | Rejected |
| 3 | Rejected |
| 2 | Rejected |
| 1 | Rejected |