Bug#981089: tracker-miner-fs: Tracker miners are started for (some?) system users

Alain Ducharme alain_ducharme at hotmail.com
Thu Mar 3 19:57:51 GMT 2022


Confirmed this is a bug, I just installed bullseye and noticed Tracker syslog noise.
Specifically the system user is: "Debian-gdm" (login screen)
Because services are "WantedBy=default.target"
...so symlinked from: /etc/systemd/user/default.target.wants/

The fix is to modify one line in both:
/usr/lib/systemd/user/tracker-extract.service
/usr/lib/systemd/user/tracker-miner-fs.service
From:
ConditionUser=!root
To:
ConditionUser=!@system

sed -i 's|ConditionUser=!root|ConditionUser=!@system|' /usr/lib/systemd/user/tracker-{extract,miner-fs}.service

man systemd.unit # reference for ConditionUser: @system = uid < 1000

Other than lobotomizing the system to disable it system wide,
The easy way to disable tracker for one user as that user:
# Disable autostarts:
for f in /etc/xdg/autostart/tracker*; do echo -e "[Desktop Entry]\nType=Application\n$(grep Name= $f)\nHidden=true" > ~/".config/autostart/${f##*/}"; done

# Disable tracker systemd user services:
systemctl --user --now mask $(basename -a /usr/lib/systemd/user/tracker*)

# Doesn't hurt to also disable using GNOME settings:
gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2 # disable
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false # disable

Cheers.



More information about the pkg-gnome-maintainers mailing list