summaryrefslogtreecommitdiff
path: root/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
diff options
context:
space:
mode:
Diffstat (limited to 'gnome-settings-daemon/gnome-settings-daemon-localeexec.in')
-rwxr-xr-xgnome-settings-daemon/gnome-settings-daemon-localeexec.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnome-settings-daemon/gnome-settings-daemon-localeexec.in b/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
new file mode 100755
index 00000000..1aca8439
--- /dev/null
+++ b/gnome-settings-daemon/gnome-settings-daemon-localeexec.in
@@ -0,0 +1,19 @@
+#! /bin/bash
+
+SETTING=$(gsettings get org.gnome.system.locale region)
+REGION=${SETTING//\,/}
+
+if [ -n "$REGION" ]; then
+ export LC_TIME=$REGION
+ export LC_NUMERIC=$REGION
+ export LC_MONETARY=$REGION
+ export LC_MEASUREMENT=$REGION
+ export LC_PAPER=$REGION
+fi
+
+if [ -x @prefix@/bin/ibus-daemon ]; then
+ export QT_IM_MODULE=ibus
+ export XMODIFIERS=@im=ibus
+fi
+
+exec @libexecdir@/gnome-settings-daemon