<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://fcitx-im.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Matrikslee</id>
	<title>Fcitx - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://fcitx-im.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Matrikslee"/>
	<link rel="alternate" type="text/html" href="https://fcitx-im.org/wiki/Special:Contributions/Matrikslee"/>
	<updated>2026-05-03T10:21:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46084</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46084"/>
		<updated>2024-03-18T03:31:45Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;br /&gt;
&lt;br /&gt;
== 更改候选窗口字体大小 ==&lt;br /&gt;
如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。&lt;br /&gt;
如果您使用的是经典 UI，您可以转到插件选项卡或单击“配置插件...”，然后单击“经典用户界面”的配置按钮。&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== 基于 Qt Widgets 的 UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/9/zh-cn&amp;diff=46083</id>
		<title>Translations:Configtool (Fcitx 5)/9/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/9/zh-cn&amp;diff=46083"/>
		<updated>2024-03-18T03:31:45Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Gallery =&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46082</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46082"/>
		<updated>2024-03-18T03:31:28Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;br /&gt;
&lt;br /&gt;
== 更改候选窗口字体大小 ==&lt;br /&gt;
如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。&lt;br /&gt;
如果您使用的是经典 UI，您可以转到插件选项卡或单击“配置插件...”，然后单击“经典用户界面”的配置按钮。&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== 基于 Qt Widgets 的 UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/9/zh-cn&amp;diff=46081</id>
		<title>Translations:Configtool (Fcitx 5)/9/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/9/zh-cn&amp;diff=46081"/>
		<updated>2024-03-18T03:31:28Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Gallery =&lt;br /&gt;
&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46080</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46080"/>
		<updated>2024-03-18T03:30:38Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 基于 Qt Widgets 的 UI == 400px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;br /&gt;
&lt;br /&gt;
== 更改候选窗口字体大小 ==&lt;br /&gt;
如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。&lt;br /&gt;
如果您使用的是经典 UI，您可以转到插件选项卡或单击“配置插件...”，然后单击“经典用户界面”的配置按钮。&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== 基于 Qt Widgets 的 UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/10/zh-cn&amp;diff=46079</id>
		<title>Translations:Configtool (Fcitx 5)/10/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/10/zh-cn&amp;diff=46079"/>
		<updated>2024-03-18T03:30:38Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 基于 Qt Widgets 的 UI == 400px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 基于 Qt Widgets 的 UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46078</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46078"/>
		<updated>2024-03-18T03:30:29Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;= Gallery = == 基于 Kirigami 2 的 UI == 400px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;br /&gt;
&lt;br /&gt;
== 更改候选窗口字体大小 ==&lt;br /&gt;
如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。&lt;br /&gt;
如果您使用的是经典 UI，您可以转到插件选项卡或单击“配置插件...”，然后单击“经典用户界面”的配置按钮。&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/9/zh-cn&amp;diff=46077</id>
		<title>Translations:Configtool (Fcitx 5)/9/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/9/zh-cn&amp;diff=46077"/>
		<updated>2024-03-18T03:30:29Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;= Gallery = == 基于 Kirigami 2 的 UI == 400px&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Gallery =&lt;br /&gt;
== 基于 Kirigami 2 的 UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46076</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46076"/>
		<updated>2024-03-18T03:30:12Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 更改候选窗口字体大小 == 如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;br /&gt;
&lt;br /&gt;
== 更改候选窗口字体大小 ==&lt;br /&gt;
如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。&lt;br /&gt;
如果您使用的是经典 UI，您可以转到插件选项卡或单击“配置插件...”，然后单击“经典用户界面”的配置按钮。&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/8/zh-cn&amp;diff=46075</id>
		<title>Translations:Configtool (Fcitx 5)/8/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/8/zh-cn&amp;diff=46075"/>
		<updated>2024-03-18T03:30:11Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 更改候选窗口字体大小 == 如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 更改候选窗口字体大小 ==&lt;br /&gt;
如果您使用 Kimpanel，则需要从 Kimpanel 自己的配置 UI 中找到字体选项，该选项无法从 fcitx5-configtool 访问。&lt;br /&gt;
如果您使用的是经典 UI，您可以转到插件选项卡或单击“配置插件...”，然后单击“经典用户界面”的配置按钮。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46074</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46074"/>
		<updated>2024-03-18T03:29:59Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/7/zh-cn&amp;diff=46073</id>
		<title>Translations:Configtool (Fcitx 5)/7/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/7/zh-cn&amp;diff=46073"/>
		<updated>2024-03-18T03:29:59Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;如果您想要更多自定义功能，您可能还需要检查“输入法选择器”插件。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46072</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46072"/>
		<updated>2024-03-18T03:29:43Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 更改输入法切换快捷键 == 转到全局设置并检查那里的快捷键配置。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/6/zh-cn&amp;diff=46071</id>
		<title>Translations:Configtool (Fcitx 5)/6/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/6/zh-cn&amp;diff=46071"/>
		<updated>2024-03-18T03:29:43Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 更改输入法切换快捷键 == 转到全局设置并检查那里的快捷键配置。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 更改输入法切换快捷键 ==&lt;br /&gt;
转到全局设置并检查那里的快捷键配置。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46070</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46070"/>
		<updated>2024-03-18T03:28:35Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 重新排序输入法 == 在 Kirigami 2 版本中，用左侧的手柄拖放项目。 在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods ==&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/5/zh-cn&amp;diff=46069</id>
		<title>Translations:Configtool (Fcitx 5)/5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/5/zh-cn&amp;diff=46069"/>
		<updated>2024-03-18T03:28:35Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 重新排序输入法 == 在 Kirigami 2 版本中，用左侧的手柄拖放项目。 在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 重新排序输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，用左侧的手柄拖放项目。&lt;br /&gt;
在 Qt Widgets 版本中，单击左侧面板中的输入法，然后单击中间栏中的上移或下移按钮。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46068</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46068"/>
		<updated>2024-03-18T03:28:10Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 移除输入法 == 在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。 在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;br /&gt;
&lt;br /&gt;
== Reordering input methods ==&lt;br /&gt;
In Kirigami 2 version, drag and drop the item with the handle on the left.&lt;br /&gt;
In Qt Widgets version, click on the input method from the panel on the left, then click move up or move down button in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods ==&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/4/zh-cn&amp;diff=46067</id>
		<title>Translations:Configtool (Fcitx 5)/4/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/4/zh-cn&amp;diff=46067"/>
		<updated>2024-03-18T03:28:10Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 移除输入法 == 在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。 在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 移除输入法 ==&lt;br /&gt;
在 Kirigami 2 版本中，单击输入法项末尾的删除按钮。&lt;br /&gt;
在 Qt Widgets 版本中，从左侧面板中单击输入法，然后双击，或单击中间列中的删除按钮（向右箭头）。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46066</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46066"/>
		<updated>2024-03-18T03:27:43Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;br /&gt;
&lt;br /&gt;
== Remove input methods ==&lt;br /&gt;
In Kirigami 2 version, click the remove button at the end of the input method item.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the left, then either double click, or click the remove button (right arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Reordering input methods ==&lt;br /&gt;
In Kirigami 2 version, drag and drop the item with the handle on the left.&lt;br /&gt;
In Qt Widgets version, click on the input method from the panel on the left, then click move up or move down button in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods ==&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/3/zh-cn&amp;diff=46065</id>
		<title>Translations:Configtool (Fcitx 5)/3/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/3/zh-cn&amp;diff=46065"/>
		<updated>2024-03-18T03:27:43Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;尽管 Fcitx 5 会根据您的系统区域设置和键盘布局进行一些基本配置，但您可能仍然希望通过 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 检查并添加或删除输入法以满足您自己的需求。  检查 [[Special:myLanguage/Input method engines|输入法引擎]] 可用于 Fcitx 5 的输入法引擎。&lt;br /&gt;
&lt;br /&gt;
= 常见用法 =&lt;br /&gt;
&lt;br /&gt;
==添加新的输入法==&lt;br /&gt;
&lt;br /&gt;
在 Kirigami 2 版本中，点击右下角的“添加输入法...”按钮，选择要添加的输入法。&lt;br /&gt;
在 Qt Widgets 版本中，从右侧面板中单击输入法，然后双击，或单击中间栏中的添加按钮（向左箭头）。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46064</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46064"/>
		<updated>2024-03-18T03:26:55Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。 &lt;br /&gt;
&lt;br /&gt;
Although Fcitx 5 will do some basic configuration based on your system locale and keyboard layout, you may still want to check and add or remove input method via &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; to fit your own needs. Check [[Special:myLanguage/Input method engines|Input method engines]] for the input method engines that are available for Fcitx 5.&lt;br /&gt;
= Common usage =&lt;br /&gt;
== Adding new input method ==&lt;br /&gt;
In Kirigami 2 version, click &amp;quot;Add Input Method...&amp;quot; button at lower right corner, and select input method to add.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the right, then either double click, or click the add button (left arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Remove input methods ==&lt;br /&gt;
In Kirigami 2 version, click the remove button at the end of the input method item.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the left, then either double click, or click the remove button (right arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Reordering input methods ==&lt;br /&gt;
In Kirigami 2 version, drag and drop the item with the handle on the left.&lt;br /&gt;
In Qt Widgets version, click on the input method from the panel on the left, then click move up or move down button in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods ==&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/2/zh-cn&amp;diff=46063</id>
		<title>Translations:Configtool (Fcitx 5)/2/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/2/zh-cn&amp;diff=46063"/>
		<updated>2024-03-18T03:26:55Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Fcitx 5 附带的命令 &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; 实际上是一个脚本，它将自动检测您的桌面环境并启动 fcitx5-configtool 包中相应的实现。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46062</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46062"/>
		<updated>2024-03-18T03:26:44Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;br /&gt;
&lt;br /&gt;
The command &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; that comes with Fcitx 5 is actually a script that will automatically detect your desktop environment and launch the corresponding implementation within fcitx5-configtool package. &lt;br /&gt;
&lt;br /&gt;
Although Fcitx 5 will do some basic configuration based on your system locale and keyboard layout, you may still want to check and add or remove input method via &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; to fit your own needs. Check [[Special:myLanguage/Input method engines|Input method engines]] for the input method engines that are available for Fcitx 5.&lt;br /&gt;
= Common usage =&lt;br /&gt;
== Adding new input method ==&lt;br /&gt;
In Kirigami 2 version, click &amp;quot;Add Input Method...&amp;quot; button at lower right corner, and select input method to add.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the right, then either double click, or click the add button (left arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Remove input methods ==&lt;br /&gt;
In Kirigami 2 version, click the remove button at the end of the input method item.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the left, then either double click, or click the remove button (right arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Reordering input methods ==&lt;br /&gt;
In Kirigami 2 version, drag and drop the item with the handle on the left.&lt;br /&gt;
In Qt Widgets version, click on the input method from the panel on the left, then click move up or move down button in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods ==&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/1/zh-cn&amp;diff=46061</id>
		<title>Translations:Configtool (Fcitx 5)/1/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/1/zh-cn&amp;diff=46061"/>
		<updated>2024-03-18T03:26:44Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] 是一个基于 Qt 的 GUI 工具，为 Fcitx 5 提供用户友好的配置界面。它有两种不同的实现，一种是基于 QWidget 的，可以通过 fcitx5-config-qt 访问，或者基于KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2]的, 可以在 Plasma 系统设置中找到它。尽管它们具有不同的用户界面，但功能是相同的。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46060</id>
		<title>Configtool (Fcitx 5)/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)/zh-cn&amp;diff=46060"/>
		<updated>2024-03-18T03:25:27Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;配置工具(Fcitx 5)&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] is a Qt-based GUI tool that provides user friendly configuration interface for Fcitx 5. It comes with two different implemenation, QWidget based one, which is accessible via fcitx5-config-qt, or KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2] based one, which can be found with in Plasma systemsettings. Though they have different user interface, the functionality is same.&lt;br /&gt;
&lt;br /&gt;
The command &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; that comes with Fcitx 5 is actually a script that will automatically detect your desktop environment and launch the corresponding implementation within fcitx5-configtool package. &lt;br /&gt;
&lt;br /&gt;
Although Fcitx 5 will do some basic configuration based on your system locale and keyboard layout, you may still want to check and add or remove input method via &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; to fit your own needs. Check [[Special:myLanguage/Input method engines|Input method engines]] for the input method engines that are available for Fcitx 5.&lt;br /&gt;
= Common usage =&lt;br /&gt;
== Adding new input method ==&lt;br /&gt;
In Kirigami 2 version, click &amp;quot;Add Input Method...&amp;quot; button at lower right corner, and select input method to add.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the right, then either double click, or click the add button (left arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Remove input methods ==&lt;br /&gt;
In Kirigami 2 version, click the remove button at the end of the input method item.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the left, then either double click, or click the remove button (right arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Reordering input methods ==&lt;br /&gt;
In Kirigami 2 version, drag and drop the item with the handle on the left.&lt;br /&gt;
In Qt Widgets version, click on the input method from the panel on the left, then click move up or move down button in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods ==&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size ==&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery =&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI ==&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/Page_display_title/zh-cn&amp;diff=46059</id>
		<title>Translations:Configtool (Fcitx 5)/Page display title/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Configtool_(Fcitx_5)/Page_display_title/zh-cn&amp;diff=46059"/>
		<updated>2024-03-18T03:25:27Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;配置工具(Fcitx 5)&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;配置工具(Fcitx 5)&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)&amp;diff=46046</id>
		<title>Configtool (Fcitx 5)</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Configtool_(Fcitx_5)&amp;diff=46046"/>
		<updated>2024-03-18T03:25:03Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Marked this version for translation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
[https://pkgs.org/search/?q=fcitx5-configtool fcitx5-configtool] is a Qt-based GUI tool that provides user friendly configuration interface for Fcitx 5. It comes with two different implemenation, QWidget based one, which is accessible via fcitx5-config-qt, or KCM/[https://api.kde.org/frameworks/kirigami/html/index.html Kirigami2] based one, which can be found with in Plasma systemsettings. Though they have different user interface, the functionality is same.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:2--&amp;gt;&lt;br /&gt;
The command &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; that comes with Fcitx 5 is actually a script that will automatically detect your desktop environment and launch the corresponding implementation within fcitx5-configtool package. &lt;br /&gt;
&lt;br /&gt;
Although Fcitx 5 will do some basic configuration based on your system locale and keyboard layout, you may still want to check and add or remove input method via &amp;lt;code&amp;gt;fcitx5-configtool&amp;lt;/code&amp;gt; to fit your own needs. Check [[Special:myLanguage/Input method engines|Input method engines]] for the input method engines that are available for Fcitx 5.&lt;br /&gt;
= Common usage = &amp;lt;!--T:3--&amp;gt;&lt;br /&gt;
== Adding new input method ==&lt;br /&gt;
In Kirigami 2 version, click &amp;quot;Add Input Method...&amp;quot; button at lower right corner, and select input method to add.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the right, then either double click, or click the add button (left arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Remove input methods == &amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
In Kirigami 2 version, click the remove button at the end of the input method item.&lt;br /&gt;
In Qt Widgets version, click input method from the panel on the left, then either double click, or click the remove button (right arrow) in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Reordering input methods == &amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
In Kirigami 2 version, drag and drop the item with the handle on the left.&lt;br /&gt;
In Qt Widgets version, click on the input method from the panel on the left, then click move up or move down button in the middle column.&lt;br /&gt;
&lt;br /&gt;
== Change the key to switch input methods == &amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
Go to global options and check the hotkey configuration there.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
You may also want to check the &#039;&#039;&#039;Input method selector&#039;&#039;&#039; addon if you want more customization.&lt;br /&gt;
&lt;br /&gt;
== Changing candidate window font size == &amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
If you are using Kimpanel, you need to find font option from Kimpanel&#039;s own configuration UI, such option is not accessible from fcitx5-configtool.&lt;br /&gt;
If you are using Classic UI, you may go to addons tab or click &#039;&#039;&#039;Configure addons...&#039;&#039;&#039;, then click on the configure button for &#039;&#039;&#039;Classic User Interface&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
= Gallery = &amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
== Kirigami 2 based UI ==&lt;br /&gt;
[[File:Configtool Kirigami 2 UI.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Qt Widgets based UI == &amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
[[File:Configtool QWidgets UI.png|400px]]&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46045</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46045"/>
		<updated>2024-03-18T03:24:24Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;参考 配置工具(Fcitx 5).&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[Special：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;br /&gt;
&lt;br /&gt;
== 其他不太常见的设置==&lt;br /&gt;
还有一些其他变量可能对某些应用程序有用。&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使用 XIM。&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
这是仅由[https://github.com/kovidgoyal/kitty/kitty]使用的变量。您需要将其设置为“GLFW_IM_MODULE=ibus”。&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
由于 Qt 5 不支持 XIM，并且它仅捆绑 ibus im 模块，因此您可能需要为不使用系统 Qt 库的 Qt 应用程序设置“QT_IM_MODULE=ibus”。  （它可能仍然无法工作，因为某些 Qt 应用程序甚至没有捆绑任何 IM 模块）。 &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
在大多数附带 systemd 的发行版上，这应该不再是问题。但是如果您使用一些所谓的“systemd”free 的发行版，您可能需要自己启动DBus并设置相关的环境变量。通常，这可以通过在启动脚本中添加如下行来完成。例如，如果您使用的是 X11，则为 ~/.xprofile。此外，您还需要确保此语法适用于您的登录 shell。&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= 配置 Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
参考 [[Special:myLanguage/Configtool (Fcitx 5)|配置工具(Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/41/zh-cn&amp;diff=46044</id>
		<title>Translations:Setup Fcitx 5/41/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/41/zh-cn&amp;diff=46044"/>
		<updated>2024-03-18T03:24:24Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;参考 配置工具(Fcitx 5).&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;参考 [[Special:myLanguage/Configtool (Fcitx 5)|配置工具(Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46043</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46043"/>
		<updated>2024-03-18T03:24:12Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;= 配置 Fcitx 5 =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[Special：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;br /&gt;
&lt;br /&gt;
== 其他不太常见的设置==&lt;br /&gt;
还有一些其他变量可能对某些应用程序有用。&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使用 XIM。&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
这是仅由[https://github.com/kovidgoyal/kitty/kitty]使用的变量。您需要将其设置为“GLFW_IM_MODULE=ibus”。&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
由于 Qt 5 不支持 XIM，并且它仅捆绑 ibus im 模块，因此您可能需要为不使用系统 Qt 库的 Qt 应用程序设置“QT_IM_MODULE=ibus”。  （它可能仍然无法工作，因为某些 Qt 应用程序甚至没有捆绑任何 IM 模块）。 &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
在大多数附带 systemd 的发行版上，这应该不再是问题。但是如果您使用一些所谓的“systemd”free 的发行版，您可能需要自己启动DBus并设置相关的环境变量。通常，这可以通过在启动脚本中添加如下行来完成。例如，如果您使用的是 X11，则为 ~/.xprofile。此外，您还需要确保此语法适用于您的登录 shell。&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= 配置 Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/40/zh-cn&amp;diff=46042</id>
		<title>Translations:Setup Fcitx 5/40/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/40/zh-cn&amp;diff=46042"/>
		<updated>2024-03-18T03:24:12Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;= 配置 Fcitx 5 =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= 配置 Fcitx 5 =&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46041</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46041"/>
		<updated>2024-03-18T03:24:07Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;= DBus = 在大多数附带 systemd 的发行版上，这应该不再是问题。但是如果您使用一些所谓的“systemd”free 的发行版，您可能需要自己启...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[Special：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;br /&gt;
&lt;br /&gt;
== 其他不太常见的设置==&lt;br /&gt;
还有一些其他变量可能对某些应用程序有用。&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使用 XIM。&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
这是仅由[https://github.com/kovidgoyal/kitty/kitty]使用的变量。您需要将其设置为“GLFW_IM_MODULE=ibus”。&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
由于 Qt 5 不支持 XIM，并且它仅捆绑 ibus im 模块，因此您可能需要为不使用系统 Qt 库的 Qt 应用程序设置“QT_IM_MODULE=ibus”。  （它可能仍然无法工作，因为某些 Qt 应用程序甚至没有捆绑任何 IM 模块）。 &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
在大多数附带 systemd 的发行版上，这应该不再是问题。但是如果您使用一些所谓的“systemd”free 的发行版，您可能需要自己启动DBus并设置相关的环境变量。通常，这可以通过在启动脚本中添加如下行来完成。例如，如果您使用的是 X11，则为 ~/.xprofile。此外，您还需要确保此语法适用于您的登录 shell。&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/39/zh-cn&amp;diff=46040</id>
		<title>Translations:Setup Fcitx 5/39/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/39/zh-cn&amp;diff=46040"/>
		<updated>2024-03-18T03:24:07Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;= DBus = 在大多数附带 systemd 的发行版上，这应该不再是问题。但是如果您使用一些所谓的“systemd”free 的发行版，您可能需要自己启...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= DBus =&lt;br /&gt;
在大多数附带 systemd 的发行版上，这应该不再是问题。但是如果您使用一些所谓的“systemd”free 的发行版，您可能需要自己启动DBus并设置相关的环境变量。通常，这可以通过在启动脚本中添加如下行来完成。例如，如果您使用的是 X11，则为 ~/.xprofile。此外，您还需要确保此语法适用于您的登录 shell。&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46039</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46039"/>
		<updated>2024-03-18T03:23:22Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 其他不太常见的设置== 还有一些其他变量可能对某些应用程序有用。 === SDL_IM_MODULE === 将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[Special：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;br /&gt;
&lt;br /&gt;
== 其他不太常见的设置==&lt;br /&gt;
还有一些其他变量可能对某些应用程序有用。&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使用 XIM。&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
这是仅由[https://github.com/kovidgoyal/kitty/kitty]使用的变量。您需要将其设置为“GLFW_IM_MODULE=ibus”。&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
由于 Qt 5 不支持 XIM，并且它仅捆绑 ibus im 模块，因此您可能需要为不使用系统 Qt 库的 Qt 应用程序设置“QT_IM_MODULE=ibus”。  （它可能仍然无法工作，因为某些 Qt 应用程序甚至没有捆绑任何 IM 模块）。 &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/38/zh-cn&amp;diff=46038</id>
		<title>Translations:Setup Fcitx 5/38/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/38/zh-cn&amp;diff=46038"/>
		<updated>2024-03-18T03:23:22Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== 其他不太常见的设置== 还有一些其他变量可能对某些应用程序有用。 === SDL_IM_MODULE === 将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== 其他不太常见的设置==&lt;br /&gt;
还有一些其他变量可能对某些应用程序有用。&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
将值设置为 fcitx。只有 SDL2 需要这个。SDL1 使用 XIM。&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
这是仅由[https://github.com/kovidgoyal/kitty/kitty]使用的变量。您需要将其设置为“GLFW_IM_MODULE=ibus”。&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
由于 Qt 5 不支持 XIM，并且它仅捆绑 ibus im 模块，因此您可能需要为不使用系统 Qt 库的 Qt 应用程序设置“QT_IM_MODULE=ibus”。  （它可能仍然无法工作，因为某些 Qt 应用程序甚至没有捆绑任何 IM 模块）。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46037</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46037"/>
		<updated>2024-03-18T03:22:21Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[Special：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/37/zh-cn&amp;diff=46036</id>
		<title>Translations:Setup Fcitx 5/37/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/37/zh-cn&amp;diff=46036"/>
		<updated>2024-03-18T03:22:20Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[Special：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46035</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46035"/>
		<updated>2024-03-18T03:22:06Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== ~/.config/plasma-workspace/env/*.sh == 仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[特别：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/37/zh-cn&amp;diff=46034</id>
		<title>Translations:Setup Fcitx 5/37/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/37/zh-cn&amp;diff=46034"/>
		<updated>2024-03-18T03:22:06Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== ~/.config/plasma-workspace/env/*.sh == 仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
仅适用于 Plasma 桌面的 env 脚本位置，您需要创建自己的 .sh 文件，例如 &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; 并将代码片段与[[特别：myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]]。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46033</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46033"/>
		<updated>2024-03-18T03:21:36Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;请&amp;#039;&amp;#039;&amp;#039;注意&amp;#039;&amp;#039;&amp;#039;，其语法与 shell 脚本不同。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
A env script location that only works for Plasma desktop, you need to create your own .sh file, e.g. &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; and put the code snippet same as [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|login shell]].&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/36/zh-cn&amp;diff=46032</id>
		<title>Translations:Setup Fcitx 5/36/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/36/zh-cn&amp;diff=46032"/>
		<updated>2024-03-18T03:21:36Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;请&amp;#039;&amp;#039;&amp;#039;注意&amp;#039;&amp;#039;&amp;#039;，其语法与 shell 脚本不同。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;请&#039;&#039;&#039;注意&#039;&#039;&#039;，其语法与 shell 脚本不同。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46031</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46031"/>
		<updated>2024-03-18T03:21:20Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。  &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx GTK_IM_MO...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Please &#039;&#039;&#039;NOTE&#039;&#039;&#039; that the syntax is different from shell script.&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
A env script location that only works for Plasma desktop, you need to create your own .sh file, e.g. &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; and put the code snippet same as [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|login shell]].&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/35/zh-cn&amp;diff=46030</id>
		<title>Translations:Setup Fcitx 5/35/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/35/zh-cn&amp;diff=46030"/>
		<updated>2024-03-18T03:21:20Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。  &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx GTK_IM_MO...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;如果您知道它适用于您的系统，您可以将以下代码片段添加到您的 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; 中。&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46029</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46029"/>
		<updated>2024-03-18T03:21:05Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== pam_env.so == 由于以下原因，这是一个过时的解决方案：  * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。  * 某些发行版...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;br /&gt;
&lt;br /&gt;
If you know it works for your system, you can put following snippet to your &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Please &#039;&#039;&#039;NOTE&#039;&#039;&#039; that the syntax is different from shell script.&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
A env script location that only works for Plasma desktop, you need to create your own .sh file, e.g. &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; and put the code snippet same as [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|login shell]].&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/34/zh-cn&amp;diff=46028</id>
		<title>Translations:Setup Fcitx 5/34/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/34/zh-cn&amp;diff=46028"/>
		<updated>2024-03-18T03:21:05Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== pam_env.so == 由于以下原因，这是一个过时的解决方案：  * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。  * 某些发行版...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== pam_env.so ==&lt;br /&gt;
由于以下原因，这是一个过时的解决方案：&lt;br /&gt;
 * pam 自 1.5.0 起弃用用户级别配置 &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;。&lt;br /&gt;
 * 某些发行版未在其 pam 配置中启用 pam_env。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46027</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46027"/>
		<updated>2024-03-18T03:20:48Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：  &amp;lt;nowiki&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
This is an obsolete solution for following reasons:&lt;br /&gt;
* pam deprecate user level configuration &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; since 1.5.0.&lt;br /&gt;
* Some distribution does not enable pam_env in their pam configuration.&lt;br /&gt;
&lt;br /&gt;
If you know it works for your system, you can put following snippet to your &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Please &#039;&#039;&#039;NOTE&#039;&#039;&#039; that the syntax is different from shell script.&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
A env script location that only works for Plasma desktop, you need to create your own .sh file, e.g. &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; and put the code snippet same as [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|login shell]].&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/33/zh-cn&amp;diff=46026</id>
		<title>Translations:Setup Fcitx 5/33/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/33/zh-cn&amp;diff=46026"/>
		<updated>2024-03-18T03:20:48Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：  &amp;lt;nowiki&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;语法与 shell 类似，但不需要 &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt;。例如，您可以创建一个包含以下内容的文件 &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt;：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46025</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46025"/>
		<updated>2024-03-18T03:20:25Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;br /&gt;
&lt;br /&gt;
The syntax is similar to shell, but no &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt; is required. For example, you can create a file &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt; with following content:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
This is an obsolete solution for following reasons:&lt;br /&gt;
* pam deprecate user level configuration &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; since 1.5.0.&lt;br /&gt;
* Some distribution does not enable pam_env in their pam configuration.&lt;br /&gt;
&lt;br /&gt;
If you know it works for your system, you can put following snippet to your &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Please &#039;&#039;&#039;NOTE&#039;&#039;&#039; that the syntax is different from shell script.&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
A env script location that only works for Plasma desktop, you need to create your own .sh file, e.g. &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; and put the code snippet same as [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|login shell]].&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/32/zh-cn&amp;diff=46024</id>
		<title>Translations:Setup Fcitx 5/32/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Translations:Setup_Fcitx_5/32/zh-cn&amp;diff=46024"/>
		<updated>2024-03-18T03:20:25Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;此配置将在您首次用户会话登录时应用，并在之后持续存在，除非您手动停止 systemd 用户。因此，修改此配置后，使其生效的最简单方法是重新启动系统。&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
	<entry>
		<id>https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46023</id>
		<title>Setup Fcitx 5/zh-cn</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=Setup_Fcitx_5/zh-cn&amp;diff=46023"/>
		<updated>2024-03-18T03:20:11Z</updated>

		<summary type="html">&lt;p&gt;Matrikslee: Created page with &amp;quot;== environment.d == 这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
= 开机自启动 =&lt;br /&gt;
&lt;br /&gt;
== 特定发行版中的工具 ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能会提供一些用于自动启动 Fcitx 的工具，并且这些工具通常也会设置环境变量。&lt;br /&gt;
&lt;br /&gt;
=== im-config (Debian/Debian-based/Ubuntu) ===&lt;br /&gt;
这是一个用于 Debian 和 Debian-based 发行版的工具。在登录到 GUI 之后，从命令行执行 &amp;lt;code&amp;gt;im-config&amp;lt;/code&amp;gt;，应该会弹出一个向导程序，在其中选择 fcitx5 即可。&lt;br /&gt;
&lt;br /&gt;
=== imsettings (Fedora) ===&lt;br /&gt;
这是一个与 im-config 类似的程序，它也提供了 GUI 来选择要使用的输入法框架。imsettings 应该是被默认安装的，如果没有，你可以手动安装它。imsettings 可以设置环境变量并且启动相应的输入法，它还提供了一个图形化的前端用于修改配置。你需要做的就是简单地执行&amp;lt;code&amp;gt;im-chooser&amp;lt;/code&amp;gt;，log-out 然后再次 log-in。&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=FwqTtGEN4vQ 针对 Fedora 36 KDE 的操作说明]。 这个操作说明应该适用于除 GNOME 外的 XDG 兼容桌面。&lt;br /&gt;
&lt;br /&gt;
=== fcitx5-autostart (Fedora) ===&lt;br /&gt;
这是一个 [fedora package]，打包了一个用于设置环境变量和 XDG autostart file 的 /etc/profile.d 脚本，可用于自启动。&lt;br /&gt;
&lt;br /&gt;
== XDG Autostart ==&lt;br /&gt;
&lt;br /&gt;
特定的发行版可能没有提供这个文件，如未提供，你可以直接复制 &amp;lt;code&amp;gt;/usr/share/applications/org.fcitx.Fcitx5.desktop&amp;lt;/code&amp;gt; 到 &amp;lt;code&amp;gt;~/.config/autostart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir -p ~/.config/autostart &amp;amp;&amp;amp; cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KWin Wayland 5.24+ ==&lt;br /&gt;
如果你只使用 Gtk/Qt/Xwayland 应用，那么你不需要这里的操作。如果你希望使用支持 text-input-v3 的原生 wayland 应用，则需要让 KWin 将输入法作为一个特殊的客户端启动。&lt;br /&gt;
&lt;br /&gt;
打开 systemsettings，转到 &amp;quot;Virtual Keyboard&amp;quot;  部分，将输入法从 &amp;quot;None&amp;quot; 改为 &amp;quot;Fcitx 5&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== 非 XDG 兼容的窗口管理器/Wayland Compoistor ==&lt;br /&gt;
&lt;br /&gt;
在不支持 XDG Autostart 的场景中，请检查你的窗口管理器的手册中关于如何在系统启动时自动运行应用程序的方法。&lt;br /&gt;
&lt;br /&gt;
=== Weston ===&lt;br /&gt;
Weston 是一个 wayland compositor 的参考实现，并不是普通用户的常规配置。&lt;br /&gt;
&lt;br /&gt;
如果你希望使用 westons zwp_input_method_v1 实现，你需要确保以下内容存在 ~/.config/weston.ini 文件中（如果路径不是  /usr/bin/fcitx5 请做相应修改）。&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[input-method]&lt;br /&gt;
path=/usr/bin/fcitx5&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
如果你已经在同一个会话中运行 fcitx5，当你为了调试和 fcitx5 尝试在 nested mode 中使用 weston 时，会存在特定的问题。&lt;br /&gt;
&lt;br /&gt;
如果你出于调试目的只在 X11 中运行 weston，最简单的方法是在启动 weston 前退出 fcitx5.&lt;br /&gt;
&lt;br /&gt;
另请注意，weston 有一个 bug，在首次运行时不会正确设置 DISPLAY 为输入法。您可能需要终止 fcitx5 一次才能使其正确设置 DISPLAY，或使用 OpenX11Connection dbus 调用来连接 fcitx。&lt;br /&gt;
&lt;br /&gt;
= 环境变量 =&lt;br /&gt;
&lt;br /&gt;
由于许多地方都处于过渡阶段，因此没有适合所有人的完美解决方案。请根据您的环境选择适合您的解决方案。基本上，您想要做的是为桌面会话设置以下环境变量。 &lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 XMODIFIERS=@im=fcitx&lt;br /&gt;
 GTK_IM_MODULE=fcitx&lt;br /&gt;
 QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 虽然它看起来像有效的 shell 脚本，但请 *注意* 上面的代码片段只是为了演示这些值是什么。请检查以下部分以了解不同方法的具体语法。&lt;br /&gt;
&lt;br /&gt;
== 登录 shell 配置文件 ==&lt;br /&gt;
如果您正在使用Bash作为您的登录shell，&amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 是您可以信赖的最好的用户级东西。它受到不同 DM 的广泛支持，如果您从 TTY 启动图形，它也可以工作。&lt;br /&gt;
&lt;br /&gt;
* 支持主流显示管理器，包括GDM/SDDM/LightDM&lt;br /&gt;
* TTY 登录&lt;br /&gt;
&lt;br /&gt;
如果您不使用 bash，您可能需要仔细检查您的 shell 配置文件是否可以用作设置环境变量的位置，尤其是当您正在使用一些不常见的登录 shell时。 &lt;br /&gt;
&lt;br /&gt;
您需要添加到 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 的代码片段如下：&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
export XMODIFIERS=@im=fcitx&lt;br /&gt;
export GTK_IM_MODULE=fcitx&lt;br /&gt;
export QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
有些人可能会认为 &amp;lt;code&amp;gt;~/.profile&amp;lt;/code&amp;gt; 是一个与 shell 无关的解决方案，这是错误的。虽然 GDM 始终获取此文件，但如果 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 存在，SDDM/Bash 将不会获取此文件。这使得 &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt; 成为更好的解决方案，因为 bash 的使用相当广泛。但在继续之前请检查您的登录 shell，某些发行版可能不使用 bash 作为默认 shell。&lt;br /&gt;
&lt;br /&gt;
此[https://youtu.be/8XDmLr6wb4M 视频]演示了如何在 Archlinux 上手动设置环境变量&lt;br /&gt;
&lt;br /&gt;
== /etc/profile ==&lt;br /&gt;
如果您不关心使用 root 修改文件，这是最好的选择。所有发行版通常都支持此文件。您需要附加到 &amp;lt;code&amp;gt;/etc/profile&amp;lt;/code&amp;gt; 末尾的代码片段与 [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== ~/.xprofile ==&lt;br /&gt;
如果您使用 X11 和显示管理器，这是一个古老的完美选择。但 Wayland 没有对应的环境变量，因此如果要为 Wayland 设置环境变量并不理想。您要添加的代码与[[Special:myLanguage/Setup Fcitx 5#Login in shell profile|登录shell配置文件]] 相同。&lt;br /&gt;
&lt;br /&gt;
== environment.d ==&lt;br /&gt;
这是 system.d 引入的新配置，但并未得到桌面环境或显示管理器支持的广泛使用。它基本上是 systemd 用户单元的环境配置。目前，仅 GDM 或 Plasma 5.22+ 支持。作为 GDM，这意味着使用 GDM 登录的任何会话都可以工作。至于 Plasma，这意味着无论您使用什么 DM，它都适用于 Plasma。&lt;br /&gt;
&lt;br /&gt;
This configuration is applied upon your first user session login and persist afterwards unless you manually stop the systemd user. So after you modifies this configuration, the easiest way to make it effective is to reboot your system.&lt;br /&gt;
&lt;br /&gt;
The syntax is similar to shell, but no &amp;lt;code&amp;gt;export&amp;lt;/code&amp;gt; is required. For example, you can create a file &amp;lt;code&amp;gt;~/.config/environment.d/im.conf&amp;lt;/code&amp;gt; with following content:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
XMODIFIERS=@im=fcitx&lt;br /&gt;
GTK_IM_MODULE=fcitx&lt;br /&gt;
QT_IM_MODULE=fcitx&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== pam_env.so ==&lt;br /&gt;
This is an obsolete solution for following reasons:&lt;br /&gt;
* pam deprecate user level configuration &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt; since 1.5.0.&lt;br /&gt;
* Some distribution does not enable pam_env in their pam configuration.&lt;br /&gt;
&lt;br /&gt;
If you know it works for your system, you can put following snippet to your &amp;lt;code&amp;gt;~/.pam_environment&amp;lt;/code&amp;gt;.&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;XMODIFIERS DEFAULT=\@im=fcitx&lt;br /&gt;
GTK_IM_MODULE DEFAULT=fcitx&lt;br /&gt;
QT_IM_MODULE DEFAULT=fcitx&amp;lt;/nowiki&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Please &#039;&#039;&#039;NOTE&#039;&#039;&#039; that the syntax is different from shell script.&lt;br /&gt;
&lt;br /&gt;
== ~/.config/plasma-workspace/env/*.sh ==&lt;br /&gt;
A env script location that only works for Plasma desktop, you need to create your own .sh file, e.g. &amp;lt;code&amp;gt;~/.config/plasma-workspace/env/im.sh&amp;lt;/code&amp;gt; and put the code snippet same as [[Special:myLanguage/Setup Fcitx 5#Login in shell profile|login shell]].&lt;br /&gt;
&lt;br /&gt;
== Other less common setup ==&lt;br /&gt;
There are some other variable that might be useful certain applications.&lt;br /&gt;
=== SDL_IM_MODULE ===&lt;br /&gt;
Set the value to fcitx. Only SDL2 requires this. SDL1 uses XIM.&lt;br /&gt;
=== GLFW_IM_MODULE ===&lt;br /&gt;
This is a variable only used by [https://github.com/kovidgoyal/kitty/ kitty]. You need to set it to `GLFW_IM_MODULE=ibus`.&lt;br /&gt;
=== Binary Qt application ===&lt;br /&gt;
Due to Qt 5 does not support XIM, and it only bundles ibus im module, you may want to set `QT_IM_MODULE=ibus` for Qt application that does not use your system Qt library. (It may still not work because certain Qt application does not even bundle any im module). &lt;br /&gt;
&lt;br /&gt;
= DBus =&lt;br /&gt;
On most distribution that ships with systemd, this should no longer be an issue. But if you are using some so called &amp;quot;systemd&amp;quot; free distribution, you may need to start DBus yourself and set the relevant environment variables. Usually, this can be done by adding a line in like this in your start up script. E.g. ~/.xprofile if you are using X11. Also you need to make sure this syntax works for your login shell. &lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;nowiki&amp;gt;eval `dbus-launch --sh-syntax --exit-with-session`&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Configure Fcitx 5 =&lt;br /&gt;
&lt;br /&gt;
See [[Special:myLanguage/Configtool (Fcitx 5)|Configtool (Fcitx 5)]].&lt;/div&gt;</summary>
		<author><name>Matrikslee</name></author>
	</entry>
</feed>