From e4445855ac740a5455134e3d06a82b677fa73193 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Wed, 10 Jun 2015 17:04:45 -0400 Subject: [PATCH] Set a default locale if missing --- rpm_spec/core-vm.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 0a9d89e..7fbf4fa 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -267,6 +267,14 @@ if [ ! -f '/etc/sysconfig/ip6tables' ]; then cp -p /usr/lib/qubes/init/ip6tables /etc/sysconfig/ip6tables fi +%if %{fedora} >= 20 +# Make sure there is a default locale set so gnome-terminal will start +if [ ! -e /etc/locale.conf ] || ! grep -q LANG /etc/locale.conf; then + touch /etc/locale.conf + echo "LANG=en_US.utf8" >> /etc/locale.conf +fi +%endif + if [ "$1" != 1 ] ; then # do the rest of %post thing only when updating for the first time... exit 0