Document a way to set TRACKER_DEBUG without modifying /usr
The situation is: I have a misbehaving tracker-miner-fs-3.service process. I am following steps at https://gnome.pages.gitlab.gnome.org/tracker/faq/#how-can-i-help-debug-problems-with-tracker-services to debug, but the journal output does not contain any useful debug messages, even specifying --priority 7
.
My guess is the debug messages are not sent to journal because TRACKER_DEBUG is not set. I am able to set this by running sudo vim /usr/lib/systemd/user/tracker-miner-fs-3.service
and adding this:
Environment=TRACKER_DEBUG=config,statistics,miner-fs-events
However, this is a nasty thing to do and is not even possible on OSes which have read-only /usr.
I want to document this step at https://gnome.pages.gitlab.gnome.org/tracker/faq/#how-can-i-help-debug-problems-with-tracker-services, can think of two ways to do it:
- suggest the user copies the .service file into $HOME/, edits Environment and does the necessary systemd dance to reload it
- add a GSetting to control the TRACKER_DEBUG value of tracker-miner-fs-3