[gnome-settings-daemon] main: Always set the IBus envvars
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] main: Always set the IBus envvars
- Date: Fri, 9 Nov 2012 15:06:57 +0000 (UTC)
commit d4dd02e60a5bf8cd9a91ead3394ca012c0c1a75d
Author: Bastien Nocera <hadess hadess net>
Date: Fri Nov 9 12:28:57 2012 +0100
main: Always set the IBus envvars
Only if IBus is available though. #fallback
gnome-settings-daemon/main.c | 19 +++----------------
1 files changed, 3 insertions(+), 16 deletions(-)
---
diff --git a/gnome-settings-daemon/main.c b/gnome-settings-daemon/main.c
index 33d088a..6548182 100644
--- a/gnome-settings-daemon/main.c
+++ b/gnome-settings-daemon/main.c
@@ -276,22 +276,9 @@ is_program_in_path (const char *binary)
static void
set_legacy_ibus_env_vars (GDBusProxy *proxy)
{
- GVariant *prop;
- const gchar *name;
-
- prop = g_dbus_proxy_get_cached_property (proxy, "session-name");
- if (prop) {
- g_variant_get (prop, "&s", &name);
-
- if (g_strcmp0 (name, "gnome") == 0 &&
- is_program_in_path ("ibus-daemon")) {
- set_session_env (proxy, "QT_IM_MODULE", "ibus");
- set_session_env (proxy, "XMODIFIERS", "@im=ibus");
- }
-
- g_variant_unref (prop);
- } else {
- g_print ("failed to get SessionName\n");
+ if (is_program_in_path ("ibus-daemon")) {
+ set_session_env (proxy, "QT_IM_MODULE", "ibus");
+ set_session_env (proxy, "XMODIFIERS", "@im=ibus");
}
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]