From ae23f0bd9cbba9c1effa5d2d00e7854a0b5ab9b8 Mon Sep 17 00:00:00 2001 From: Stephen Arnold Date: Sat, 19 Oct 2024 15:09:18 -0700 Subject: [PATCH] chg: update about() and update debian install in readme Signed-off-by: Stephen Arnold --- README.rst | 20 ++++++++++++++++---- scripts/timew-status-indicator | 6 ++++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 314e979..99b4a6d 100644 --- a/README.rst +++ b/README.rst @@ -84,14 +84,26 @@ installed and then add the PPA: See `Adding this PPA to your system`_ for more info. A somewhat manual approach using pre-built packages is available for debian -*bookworm*, *trixie*, and *sid*. First install the timew package:: +*bookworm*, *trixie*, and *sid*. First install the ``gdebi`` package:: - $ sudo apt install timewarrior + $ sudo apt install gdebi + +Next download the ``.deb`` packages for timew-report and timew-addons from +GitHub for your Debian version, eg, for bookworm do:: + + $ wget https://github.com/sarnold/timew-addons/releases/download/0.3.0/timew-addons_0.3.0-3+g478e08a-bookworm_all.deb + $ wget https://github.com/sarnold/timew-report/releases/download/v1.4.0/timew-report_1.4.0-10+gc66c7b7-bookworm_amd64.deb Then install the ``.deb`` packages for timew-report and timew-addons from -GitHub:: +GitHub using gdebi:: + + $ sudo gedbi timew-report_1.4.0-10+gc66c7b7-bookworm_amd64.deb + $ sudo gedbi timew-addons_0.3.0-3+g478e08a-bookworm_all.deb + +.. important:: The exact package names and Debian release will be different. + Substitute the name of your Debian release and use the most + recent Github release page available. - $ .. _Adding this PPA to your system: .. _this PPA: diff --git a/scripts/timew-status-indicator b/scripts/timew-status-indicator index 5b888e4..aa30e8c 100755 --- a/scripts/timew-status-indicator +++ b/scripts/timew-status-indicator @@ -9,7 +9,7 @@ import subprocess import time import typing from collections import Counter -from datetime import timedelta +from datetime import datetime, timedelta from decimal import Decimal from threading import Thread from typing import cast @@ -180,11 +180,13 @@ class Indicator: return menu def about(self, source): + year = datetime.now().year + cpr_str = f'© {year} Stephen L Arnold' dlg = Gtk.AboutDialog() dlg.set_name('About...') dlg.set_program_name('Timew Status Indicator') dlg.set_version(APP_VERSION) - dlg.set_copyright('© 2024 Stephen L Arnold') + dlg.set_copyright(cpr_str) dlg.set_license_type(Gtk.License.GPL_3_0) dlg.set_logo_icon_name(get_state_icon('APP', CFG)) dlg.set_website('https://github.com/sarnold/timew-addons')