commit 2990a2e5f5328e6d36ec92805df8082243e7cc85 Author: Austin English Date: Fri Aug 7 00:34:10 2015 -0500 tails-prepare-win8-theme: add wrapper scripts for gimp/scribus to avoid showing splash screens in win8 mode diff --git a/config/chroot_local-includes/usr/local/sbin/tails-prepare-win8-theme b/config/chroot_local-includes/usr/local/sbin/tails-prepare-win8-theme index 0dff63b..130e48e 100755 --- a/config/chroot_local-includes/usr/local/sbin/tails-prepare-win8-theme +++ b/config/chroot_local-includes/usr/local/sbin/tails-prepare-win8-theme @@ -1,5 +1,8 @@ #!/bin/sh +set -e +set -u + # 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. @@ -36,6 +39,16 @@ ln -s "/usr/share/pixmaps/gpgApplet/scalable-grey" "/usr/share/pixmaps/gpgApplet rm "/usr/share/pixmaps/gpgApplet/48x48/" -r ln -s "/usr/share/pixmaps/gpgApplet/48x48-grey" "/usr/share/pixmaps/gpgApplet/48x48" +# For applications that support it, avoid showing splash screens: +for x in gimp scribus ; do + dpkg-divert --add --rename --divert "/usr/bin/${x}-real" "/usr/bin/${x}" + cat > "/usr/bin/${x}" <<_EOF +#!/bin/sh +"/usr/bin/${x}-real" --no-splash "\$@" +_EOF + chmod 755 "/usr/bin/${x}" +done + # Early set some gsettings # Only setting all of them in this script fails # Icon theme