Skip to content

Instantly share code, notes, and snippets.

@rexlx
Created April 5, 2022 11:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexlx/22b86afa9ce64f8c48152e8a2acaa5ef to your computer and use it in GitHub Desktop.
Save rexlx/22b86afa9ce64f8c48152e8a2acaa5ef to your computer and use it in GitHub Desktop.
disable tracker daemon for redhat, fedora and centos (and presumably rocky and alma linux as well)
#!/bin/bash
echo "Hidden=true" >> /etc/xdg/autostart/tracker-extract.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-apps.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-fs.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-miner-user-guides.desktop
echo "Hidden=true" >> /etc/xdg/autostart/tracker-store.desktop
dbus-launch --exit-with-session gsettings set \
org.freedesktop.Tracker.Miner.Files crawling-interval -2
dbus-launch --exit-with-session gsettings set \
org.freedesktop.Tracker.Miner.Files enable-monitors false
yes | LANG=C tracker reset --hard
sed -i 's/X-GNOME-Autostart-enabled=.*/X-Gnome-Autostart-enabled=false/' \
/etc/xdg/autostart/tracker-store.desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment