Skip to content

Commit

Permalink
chg: update about() and update debian install in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Arnold <[email protected]>
  • Loading branch information
sarnold committed Oct 19, 2024
1 parent b93aeb6 commit ae23f0b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
20 changes: 16 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions scripts/timew-status-indicator
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit ae23f0b

Please sign in to comment.