Comment 9 for bug 1917916

Revision history for this message
Eduards Bezverhijs (mjasnik) wrote :

The permission issue I'm referring to is this (occurred: 2021-03-04 12:03:42.626887):
----------------------------
    with open(self._configFile, "w") as fp:
PermissionError: [Errno 1] Operation not permitted: '/var/lib/timekpr/config/timekpr.authmane512.conf'
----------------------------

Because of this it was not possible to write to config file and read it afterwards, that caused other errors.
After some some, after the log file was cut (2021-03-04 12:36:47.084534), there are no more errors, so permission issue went away.

As for program detection, there is no magic in detecting programs in timekpr, it just checks the process names and additionally parameters, if "Enhanced activity monitor" is enabled.

If the mask is "opera", then it matches everything that ends with "opera", that is: /some/path/to/opera, but the following will not work: /some/path/to/opera-browser., however they will both match, if mask is "·*opera.*".

In the log files there are a lines:
----------------------------
2021-03-05 09:14:04.037963: PT match, uid: 1000, exe: /snap/opera/112/usr/lib/x86_64-linux-gnu/opera/opera, cmdl: n/a
2021-03-05 09:14:16.052033: PT: user "authmane512" (1000) has 44 matching processes out of 173, using 3 filters
----------------------------

But I don't know whether that's with regexp or without.

I'll try to install opera in VM to check how opera behaves as snap/flatpak. Process monitor was tested on standard processes only, but snap/flatpak packages are getting more popular, so it's time to check it out :)