Commit ca3d103a authored by Mikhail Efremov's avatar Mikhail Efremov Committed by Michael Shigorin

slinux: Disable tracker on live

Based on init5-disable-tracker from m-p-d.
parent 92f056e2
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment