This repository was archived by the owner on Jun 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchapter-config-env.html
91 lines (91 loc) · 3.67 KB
/
chapter-config-env.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>第 2 章 配置环境</title>
<link rel="stylesheet" href="docbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="小企鹅输入法(fcitx)">
<link rel="up" href="part-installation.html" title="部分 II. 安装配置">
<link rel="prev" href="sect1-package.html" title="1.2. 从预编译包安装">
<link rel="next" href="chapter-autostart.html" title="第 3 章 跟随桌面环境自动启动">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr><th colspan="3" align="center">第 2 章 配置环境</th></tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="sect1-package.html">上一页</a> </td>
<th width="60%" align="center">部分 II. 安装配置</th>
<td width="20%" align="right"> <a accesskey="n" href="chapter-autostart.html">下一页</a>
</td>
</tr>
</table>
<hr>
</div>
<div class="chapter" title="第 2 章 配置环境">
<div class="titlepage"><div><div><h2 class="title">
<a name="chapter-config-env"></a>第 2 章 配置环境</h2></div></div></div>
<p>
各大发行版都有提供自己的输入法选择工具,并且在打包时提供了额外的配置脚本。
在具体使用的时候请尽量使用发行版提供的工具,而不是自己配置输入法。
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>Fedora:使用im-chooser(图形界面)</p></li>
<li class="listitem"><p>Debian,Ubuntu:im-switch,执行 im-switch -s fcitx,im-config(图形界面)</p></li>
<li class="listitem"><p>OpenSUSE:~/.profile中加入export INPUT_METHOD="fcitx"</p></li>
</ul></div>
<p>
</p>
<p>
如果你并非使用以上列出的发行版,那么你可以按照你启动桌面的方式选择配置。
</p>
<p>
采用KDM,GDM:在~/.xprofile中加入
</p>
<pre class="programlisting">
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx # 或者是xim,取决于你是否编译了对应的输入法模块
export QT_IM_MODULE=fcitx # 或者是xim,取决于你是否编译了对应的输入法模块
</pre>
<p>
</p>
<p>
采用startx启动:在~/.xinitrc中加入
</p>
<pre class="programlisting">
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx # 或者是xim,取决于你是否编译了对应的输入法模块
export QT_IM_MODULE=fcitx # 或者是xim,取决于你是否编译了对应的输入法模块
</pre>
<p>
如果你需要使用im module,你需要保证dbus正确初始化。如果你的fcitx启动输出中包含了dbus相关的错误,请在你的启动脚本开头加入
</p>
<pre class="programlisting">
eval `dbus-launch --sh-syntax --exit-with-session`
</pre>
<p>
</p>
<p>
更详细的说明参考后面的<a class="link" href="faq.html" title="第 15 章 常见问题">Faq</a>。
</p>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="sect1-package.html">上一页</a> </td>
<td width="20%" align="center"><a accesskey="u" href="part-installation.html">上一级</a></td>
<td width="40%" align="right"> <a accesskey="n" href="chapter-autostart.html">下一页</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">1.2. 从预编译包安装 </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">起始页</a></td>
<td width="40%" align="right" valign="top"> 第 3 章 跟随桌面环境自动启动</td>
</tr>
</table>
</div>
</body>
</html>