snap/hamster question
Oliver Grawert
ogra at ubuntu.com
Mon Jan 30 11:37:27 UTC 2023
hi,
Am Sonntag, dem 29.01.2023 um 20:47 +1100 schrieb Karl Auer:
> I use a time management tool called Hamster. With earlier versions,
> installed as a normal package, I was able to find the code and
> modify it to tweak a few things. Now it seems to be distributed only
> as
> a snap. The developer-provided Ubuntu package names don't exist.
>
> I have found the (python) source code inside the snap; an example
> path is:
>
>
the magic runes to hack a snap are:
$ cp /snap/hamster-snap/56/usr/lib/python3/dist-
packages/hamster/reports.py .
... now you edit reports.py
$ sudo mount --bind ./reports.py /snap/hamster-
snap/56/usr/lib/python3/dist-packages/hamster/reports.py
... i.e. you can always bind-mount changed files on top of a snap ...
for making a change like this permanent you should then create a
systemd mount unit that starts after the snap mount unit for the
respective snap (check /etc/systemd/system for generated mount units)
... indeed, if the snap underneath you changes in incompatible ways
things will break ...
ciao
oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230130/e191d143/attachment.sig>
More information about the ubuntu-users
mailing list