<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://fcitx-im.org/index.php?action=history&amp;feed=atom&amp;title=DBus_Interface</id>
	<title>DBus Interface - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://fcitx-im.org/index.php?action=history&amp;feed=atom&amp;title=DBus_Interface"/>
	<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=DBus_Interface&amp;action=history"/>
	<updated>2026-05-03T17:08:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://fcitx-im.org/index.php?title=DBus_Interface&amp;diff=45797&amp;oldid=prev</id>
		<title>Weng Xuetian: Created page with &quot;This page is about certain things that you can do with the dbus interface of Fcitx 5.  This page will use qdbus as an command example for its simplicity. You may also use dbus...&quot;</title>
		<link rel="alternate" type="text/html" href="https://fcitx-im.org/index.php?title=DBus_Interface&amp;diff=45797&amp;oldid=prev"/>
		<updated>2023-07-28T00:20:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This page is about certain things that you can do with the dbus interface of Fcitx 5.  This page will use qdbus as an command example for its simplicity. You may also use dbus...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page is about certain things that you can do with the dbus interface of Fcitx 5.&lt;br /&gt;
&lt;br /&gt;
This page will use qdbus as an command example for its simplicity. You may also use dbus-send, or busctl, but the command will be slighty different. Certain functionality is also provided by fcitx5-remote. In that case fcitx5-remote command will also be listed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus [service name] [object path] [interface].[member] [arguments]&lt;br /&gt;
busctl --user call [service name] [object path] [interface] [member] [arguments]&lt;br /&gt;
dbus-send --session --print-reply --dest=[service name] [object path] [interface].[member] [arguments]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
Call org.fcitx.Fcitx.Controller1.ReloadConfig with argument &amp;quot;pinyin&amp;quot; with these 3 commands would be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.ReloadAddonConfig pinyin&lt;br /&gt;
busctl --user call org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1 ReloadAddonConfig s pinyin&lt;br /&gt;
dbus-send --session --print-reply --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.ReloadAddonConfig string:pinyin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Get current input method name =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod&lt;br /&gt;
fcitx5-remote -n&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Get current input method group name =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethodGroup&lt;br /&gt;
fcitx5-remote -q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Toggle active/inactive state =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.Toggle&lt;br /&gt;
fcitx5-remote -t&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Set state to active =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.Activate&lt;br /&gt;
fcitx5-remote -o&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Set state to inactive =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.Deactivate&lt;br /&gt;
fcitx5-remote -c&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Get current state  =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.State&lt;br /&gt;
fcitx5-remote&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Ask fcitx to quit =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Simply &amp;quot;killall fcitx5&amp;quot; is also fine.&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.Exit&lt;br /&gt;
fcitx5-remote -e&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Reload configuration from disk =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.ReloadAddonConfig [addon name]&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.ReloadConfig # reload global config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Open a new X11 connection from Fcitx =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.OpenX11Connection [x11 display] &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Open a new wayland connection from Fcitx =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.OpenWaylandConnection [wayland display]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Set current input method =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.SetCurrentIM [input method name]&lt;br /&gt;
fcitx5-remote -s [input method name]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= See all the connected client to fcitx =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Same information is available in fcitx5-diagnose&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.DebugInfo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Set current group =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.SwitchInputMethodGroup [group name]&lt;br /&gt;
fcitx5-remote -g [group name]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Weng Xuetian</name></author>
	</entry>
</feed>