11-env-fix-1.patch & 12-env-fix-2.patch: From upstream, fix various environnement...
[debian/lxdm.git] / debian / patches / 12-env-fix-2.patch
1 From 3cf91b090c7ba78eefc2e530e9ea50ac6c6dbd2c Mon Sep 17 00:00:00 2001
2 From: dgod <dgod.osa@gmail.com>
3 Date: Tue, 11 May 2010 21:48:50 +0800
4 Subject: [PATCH] fix left env bug
5
6 ---
7  src/greeter.c |    2 +-
8  1 files changed, 1 insertions(+), 1 deletions(-)
9
10 diff --git a/src/greeter.c b/src/greeter.c
11 index 761082e..21e31d4 100644
12 --- a/src/greeter.c
13 +++ b/src/greeter.c
14 @@ -754,7 +754,7 @@ int main(int arc, char *arg[])
15      p=gtk_settings_get_default();
16      if(p)
17      {
18 -        putenv("GTK_IM_MODULE=gtk-im-context-simple");
19 +        setenv("GTK_IM_MODULE","gtk-im-context-simple",1);
20          gtk_settings_set_string_property(p,"gtk-im-module","gtk-im-context-simple",0);
21          gtk_settings_set_long_property(p,"gtk-show-input-method-menu",0,0);
22      }
23 -- 
24 1.6.3
25