[gnome-settings-daemon/gnome-3-6] main: Set our own IBus envvars as well
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-6] main: Set our own IBus envvars as well
- Date: Tue, 19 Feb 2013 07:46:01 +0000 (UTC)
commit 517d5124abf5f5b5a55352e17351c6689d5e4970
Author: Bastien Nocera <hadess hadess net>
Date: Fri Feb 15 17:33:45 2013 +0100
main: Set our own IBus envvars as well
Just as we set gnome-session's.
https://bugzilla.gnome.org/show_bug.cgi?id=693381
gnome-settings-daemon/main.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gnome-settings-daemon/main.c b/gnome-settings-daemon/main.c
index db7b4b1..371933d 100644
--- a/gnome-settings-daemon/main.c
+++ b/gnome-settings-daemon/main.c
@@ -220,7 +220,8 @@ set_locale (GDBusProxy *proxy)
g_object_unref (locale_settings);
}
-/* Keep synchronised with set_locale() above */
+/* Keep synchronised with set_locale() and
+ * set_legacy_ibus_env_vars() above */
static void
set_locale_env (void)
{
@@ -239,6 +240,13 @@ set_locale_env (void)
}
g_free (region);
g_object_unref (locale_settings);
+
+ /* Set IBus legacy environment */
+ if (is_program_in_path ("ibus-daemon") &&
+ keyboard_plugin_is_enabled ()) {
+ g_setenv ("QT_IM_MODULE", "ibus");
+ g_setenv ("XMODIFIERS", "@im=ibus");
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]