Commit 156e99c5 authored by Tails developers's avatar Tails developers
Browse files

Merge branch 'bugfix/7325-task-list-icons' into feature/6342-update-camouflage-for-gnome3

parents 2fc8960d 57d21864
......@@ -3,13 +3,26 @@
# This script sets up the live user's Gnome theme to something that
# resembles Microsoft Windows 8.
# Set IE icon in iceweasel
# XXX: doesn't work as amnesia
#ie_icon="/usr/share/icons/GnomeXP/48x48/apps/iceweasel.png"
#for x in /usr/share/iceweasel/browser/chrome/icons/default/*; do
# rm ${x}
# ln -s ${ie_icon} ${x}
#done
# Set claws-mail icon
CLAWSTHEMEDIR="$HOME/.claws-mail/themes/Windows8"
CLAWSCONFSECTION="\[Common\]"
CLAWSCONFLABEL="pixmap_theme_path"
# Create claws-mail theme
mkdir -p "$CLAWSTHEMEDIR"
cp /usr/share/icons/Windows8/apps/claws-mail.png "$CLAWSTHEMEDIR/claws_mail_icon.png"
echo > "$CLAWSTHEMEDIR/.claws_themeinfo" <<EOF
Tails Windows 8
Tails Developers
EOF
# Apply claws-mail theme
# XXX: this will disable any user-defined theme stored in persistence
# and the change will be permanent, even though it has no effect if the theme
# doesn't exist, which should be the case if camouflage has not been enabled.
if grep "$CLAWSCONFLABEL" "$HOME/.claws-mail/clawsrc"; then
sed -e "s;$CLAWSCONFLABEL=.*$;$CLAWSCONFLABEL=$CLAWSTHEMEDIR;" -i "$HOME/.claws-mail/clawsrc"
else
sed -e "/$CLAWSCONFSECTION/ a $CLAWSCONFLABEL=$CLAWSTHEMEDIR" -i "$HOME/.claws-mail/clawsrc"
fi
# Remove Tails-specific desktop icons
rm --interactive=never -f ${HOME}/Desktop/*.desktop 2> /dev/null || true
......
#!/bin/sh
# This script runs the few steps required for windows 8 camouflage that cannot
# be run as the desktop user. It consists mainly of ugly workarounds. Running this
# script will change the system until next reboot.
# Activate the camouflage for the next session
install -m 0644 \
/usr/share/applications/tails-activate-win8-theme.desktop \
/etc/xdg/autostart/
# Setup pidgin application icon (show in the windows list)
# The path to /usr/share/icons/hicolor is hardcoded in pidgin.
for icon in /usr/share/icons/hicolor/*/apps/pidgin.png; do
rm "$icon"
ln -s "/usr/share/icons/Windows8/apps/pidgin.png" "$icon"
done
# Set iceweasel application icon
for icon in /usr/share/iceweasel/browser/chrome/icons/default/*; do
rm "$icon"
ln -s "/usr/share/icons/Windows8/apps/iceweasel.png" "$icon"
done
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