disable previews in nautilus by default for better security

copied solution by @unman

https://github.com/QubesOS/qubes-issues/issues/1108

https://github.com/QubesOS/qubes-core-agent-linux/pull/39

https://phabricator.whonix.org/T500
This commit is contained in:
Patrick Schleizer 2017-02-19 22:25:28 +00:00
parent 91adab0d1b
commit 5ba2a5b6ff
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
2 changed files with 48 additions and 0 deletions

46
debian/security-misc.postinst vendored Normal file
View File

@ -0,0 +1,46 @@
#!/bin/bash
## This file is part of Whonix.
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
if [ -f /usr/lib/pre.bsh ]; then
source /usr/lib/pre.bsh
fi
set -e
true "
#####################################################################
## INFO: BEGIN: $DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME ${1+"$@"}
#####################################################################
"
case "$1" in
configure)
glib-compile-schemas /usr/share/glib-2.0/schemas
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "$DPKG_MAINTSCRIPT_NAME called with unknown argument \`$1'" >&2
exit 1
;;
esac
true "INFO: debhelper beginning here."
#DEBHELPER#
true "INFO: Done with debhelper."
true "
#####################################################################
## INFO: END : $DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME ${1+"$@"}
#####################################################################
"
## Explicitly "exit 0", so eventually trapped errors can be ignored.
exit 0

View File

@ -0,0 +1,2 @@
[org.gnome.nautilus.preferences]
show-image-thumbnails="never"