Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3718)

Issue 4621043: Check IBUS_CONFIG_HOME environment variable when reading/writing the socket file. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Yusuke Sato
Modified:
13 years ago
Reviewers:
shawn.p.huang, Peng Huang, satorux, Peng
CC:
zork
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Check IBUS_CONFIG_HOME environment variable when reading/writing the socket file. BUG=crosbug.com/16501 TEST=export IBUS_CONFIG_HOME=/tmp, start Chrome on Chromium OS, verify an empty dir /tmp/ibus/bus exists with mode 0700, log in, enable IME, verify IME works, verify the socket file is created in /tmp/ibus/bus.

Patch Set 1 #

Total comments: 2

Patch Set 2 : review fix #

Total comments: 2

Patch Set 3 : review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/ibusshare.c View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Yusuke Sato
13 years ago (2011-06-15 05:19:40 UTC) #1
satorux
LGTM http://codereview.appspot.com/4621043/diff/1/src/ibusshare.c File src/ibusshare.c (right): http://codereview.appspot.com/4621043/diff/1/src/ibusshare.c#newcode189 src/ibusshare.c:189: config_home = g_getenv ("IBUS_CONFIG_HOME"); For new code, would ...
13 years ago (2011-06-15 05:23:52 UTC) #2
Yusuke Sato
http://codereview.appspot.com/4621043/diff/1/src/ibusshare.c File src/ibusshare.c (right): http://codereview.appspot.com/4621043/diff/1/src/ibusshare.c#newcode189 src/ibusshare.c:189: config_home = g_getenv ("IBUS_CONFIG_HOME"); On 2011/06/15 05:23:52, satorux wrote: ...
13 years ago (2011-06-15 05:26:49 UTC) #3
Peng
http://codereview.appspot.com/4621043/diff/4001/src/ibusshare.c File src/ibusshare.c (right): http://codereview.appspot.com/4621043/diff/4001/src/ibusshare.c#newcode188 src/ibusshare.c:188: const gchar *config_home = g_getenv ("IBUS_CONFIG_HOME"); I think the ...
13 years ago (2011-06-15 14:09:31 UTC) #4
Yusuke Sato
http://codereview.appspot.com/4621043/diff/4001/src/ibusshare.c File src/ibusshare.c (right): http://codereview.appspot.com/4621043/diff/4001/src/ibusshare.c#newcode188 src/ibusshare.c:188: const gchar *config_home = g_getenv ("IBUS_CONFIG_HOME"); On 2011/06/15 14:09:31, ...
13 years ago (2011-06-16 11:18:19 UTC) #5
Peng
13 years ago (2011-06-16 14:22:21 UTC) #6
On 2011/06/16 11:18:19, Yusuke Sato wrote:
> http://codereview.appspot.com/4621043/diff/4001/src/ibusshare.c
> File src/ibusshare.c (right):
> 
> http://codereview.appspot.com/4621043/diff/4001/src/ibusshare.c#newcode188
> src/ibusshare.c:188: const gchar *config_home = g_getenv ("IBUS_CONFIG_HOME");
> On 2011/06/15 14:09:31, Peng wrote:
> > I think the variable name is not accurate. It looks like all ibus components
> > should respect it and use this path for storing config stuffs. but I think
it
> is
> > only for address file, right? How about rename it to IBUS_ADDRESS_FILE (the
> file
> > for storing ibus address), and this function could return this value
directly
> > instead of making the path from several parts?
> 
> Done.

LGTM. Thx
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b