{"id":2566,"date":"2022-01-18T05:08:56","date_gmt":"2022-01-17T21:08:56","guid":{"rendered":"https:\/\/www.csslayer.info\/wordpress\/?p=2566"},"modified":"2022-01-19T01:06:46","modified_gmt":"2022-01-18T17:06:46","slug":"fcitx-5-and-multiple-wayland-compositor","status":"publish","type":"post","link":"https:\/\/www.csslayer.info\/wordpress\/fcitx-dev\/fcitx-5-and-multiple-wayland-compositor\/","title":{"rendered":"Fcitx 5 and multiple wayland compositor"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/www.csslayer.info\/wordpress\/wp-content\/uploads\/2022\/01\/2.mp4\"><\/video><\/figure>\n\n\n\n<p>Actually there is nothing so special about this feature, it&#8217;s just come freely with the multiple X server support. I just realized that WAYLAND_SOCKET passed from compositor can be just sent via DBus to the actual fcitx5 server, without the need to let compositor start Fcitx 5 directly. There will be a new small tool included in the next release (fcitx5-wayland-launcher). It can be used to initiate a new wayland connection from Fcitx, even if WAYLAND_SOCKET is required to be used link kwin or weston.<\/p>\n\n\n\n<p>Some people may find it useful if they want to keep Fcitx as a user-level daemon. I didn&#8217;t test it, but I think this is what can be done:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Remove all other method of auto start mechanism.<\/li><li>create a user systemd unit, with command fcitx5 -k. The &#8220;-k&#8221; allows fcitx 5 to be kept running even if display server is gone.<\/li><li>Make your X11 or wayland desktop to run a command to start a new X connection or Wayland connection.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Actually there is nothing so special about this feature, it&#8217;s just come freely with the multiple X server support. I just realized that WAYLAND_SOCKET passed from compositor can be just sent via DBus to the actual fcitx5 server, without the &hellip; <a href=\"https:\/\/www.csslayer.info\/wordpress\/fcitx-dev\/fcitx-5-and-multiple-wayland-compositor\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[12,248,195],"class_list":["post-2566","post","type-post","status-publish","format-standard","hentry","category-fcitx-dev","tag-fcitx","tag-fcitx5","tag-wayland"],"_links":{"self":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/comments?post=2566"}],"version-history":[{"count":2,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2566\/revisions"}],"predecessor-version":[{"id":2569,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2566\/revisions\/2569"}],"wp:attachment":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/media?parent=2566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/categories?post=2566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/tags?post=2566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}