mkimage-profiles/features.in/slinux/live/image-scripts.d/60-disable-tracker.sh
Mikhail Efremov ca3d103aa0 slinux: Disable tracker on live
Based on init5-disable-tracker from m-p-d.
2019-05-29 19:17:09 +03:00

18 lines
497 B
Bash
Executable File

#!/bin/sh
# Disable tracker on live
XDG_AS_DIR=/etc/xdg/autostart
LIVE_USER=altlinux
LIVE_USER_HOME="/home/$LIVE_USER"
if [ -d "$LIVE_USER_HOME/.config/autostart" ]; then
for d in extract miner-apps miner-fs miner-rss miner-user-guides store; do
[ -f "$XDG_AS_DIR"/tracker-$d.desktop ] || continue
cat <<EOF >$LIVE_USER_HOME/.config/autostart/tracker-$d.desktop
[Desktop Entry]
Hidden=true
EOF
chown "$LIVE_USER":"$LIVE_USER" $LIVE_USER_HOME/.config/autostart/tracker-$d.desktop
done
fi