{"id":2478,"date":"2020-11-28T06:05:48","date_gmt":"2020-11-27T22:05:48","guid":{"rendered":"https:\/\/www.csslayer.info\/wordpress\/?p=2478"},"modified":"2020-12-04T00:07:36","modified_gmt":"2020-12-03T16:07:36","slug":"fcitx5-on-flatpak","status":"publish","type":"post","link":"https:\/\/www.csslayer.info\/wordpress\/fcitx-dev\/fcitx5-on-flatpak\/","title":{"rendered":"\u5982\u4f55\u73b0\u5728\u5c31\u7528\u4e0a Fcitx 5 (Flatpak)"},"content":{"rendered":"\n<p>\u6298\u817e\u4e86\u5f88\u4e45\u7684\u81ea\u52a8\u6784\u5efa\uff0c\u73b0\u5728\u7ec8\u4e8e\u53ef\u4ee5\u62ff\u51fa\u6765\u7ed9\u5927\u5bb6\u7528\u4e00\u4e0b\u4e86\u3002\u5f53\u7136\uff0c\u636e\u8bf4 flathub \u6709\u7279\u8272\u7f51\u7edc\u95ee\u9898\u2026\u2026\u8fd9\u90e8\u5206\u6211\u5c31\u4e0d\u8d1f\u8d23\u89e3\u51b3\u4e86\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u6dfb\u52a0\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u6dfb\u52a0 flathub \u5230\u7528\u6237\u7ea7\nflatpak remote-add --user --if-not-exists flathub https:\/\/dl.flathub.org\/repo\/flathub.flatpakrepo\n# \u6dfb\u52a0 fcitx5-unstable \u5230\u7528\u6237\u7ea7\u914d\u7f6e\nflatpak remote-add --user --if-not-exists fcitx5-unstable https:\/\/flatpak.fcitx-im.org\/unstable-repo\/fcitx5-unstable.flatpakrepo<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5 Fcitx 5 \u548c\u8f93\u5165\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flatpak install org.fcitx.Fcitx5\nflatpak install org.fcitx.Fcitx5.Addon.ChineseAddons\n# \u4f8b\u5982\u9700\u8981 Rime\uff1a flatpak install org.fcitx.Fcitx5.Addon.Rime\n# \u53ef\u4ee5\u7528 flatpak remote-ls fcitx5-unstable \u67e5\u770b\u6709\u54ea\u4e9b\u5305<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\uff0c\u5728\u672c\u5730\u975e flatpak \u7a0b\u5e8f\u4e0a\u4f7f\u7528\u7684\u8bdd\uff0c\u8fd8\u9700\u8981\u5b89\u88c5 fcitx 4\/5 \u7684 im module\u3002\u8fd9\u4e2a repo \u9664\u4e86\u63d0\u4f9b\u53e6\u4e00\u79cd\u66f4\u65b0\u65b9\u5f0f\u4e4b\u5916\uff0c\u4e5f\u4e3b\u8981\u662f\u4e3a\u4e86\u65b9\u4fbf\u8fd8\u6ca1\u63d0\u4f9b fcitx 5 \u7684\u53d1\u884c\u7248\u6d4b\u8bd5\u3002fcitx 4 \u53ea\u8981\u662f\u6700\u8fd1\u7684\u7248\u672c\uff0c\u90fd\u53ef\u4ee5\u76f4\u63a5\u548c fcitx 5 \u914d\u5408\u4f7f\u7528\u3002\u73af\u5883\u53d8\u91cf\u65b9\u9762\u5f53\u7136\u8fd8\u662f\u548c\u8fc7\u53bb\u4e00\u6837\uff0c\u6bd4\u8f83\u4f20\u7edf\u7684\u5c31\u662f\u8bbe\u7f6e\u5728 ~\/.xprofile \u91cc\u9762\uff08\u548c\u8fc7\u53bb\u4e00\u6837\uff0c\u5982\u679c\u4f60\u5df2\u7ecf\u5bf9 fcitx 4 \u8fdb\u884c\u8bbe\u7f6e\u4e86\u5c31\u4e0d\u7528\u4fee\u6539\u4ec0\u4e48\u3002\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export QT_IM_MODULE=fcitx\nexport GTK_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx<\/code><\/pre>\n\n\n\n<p>\u81ea\u52a8\u542f\u52a8\u5c31\u628a flatpak \u7684 fcitx 5 \u7684 desktop file \u52a0\u5165\u5230\u81ea\u52a8\u542f\u52a8\u5373\u53ef\u3002\u4f46\u76f8\u5bf9\u7684\u4e5f\u9700\u8981\u963b\u6b62 fcitx 4 \u7684\u81ea\u52a8\u542f\u52a8\u3002\u5982\u679c\u6ca1\u6709\u62c6\u5305\u800c\u5bfc\u81f4 fcitx \u88ab\u5b89\u88c5\uff0c\u5982\u679c\u7cfb\u7edf\u63d0\u4f9b\u4e86 \/etc\/xdg\/autostart\/fcitx-autostart.desktop \u5c31\u9700\u8981\u5728 ~\/.config\/autostart\/fcitx-autostart.desktop \u65b0\u5efa\u5982\u4e0b\u5185\u5bb9\u7684\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Desktop Entry]\nHidden=true<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u662f\u91c7\u7528  im-config \u7b49\u7c7b\u4f3c\u7684\u65b9\u5f0f\uff0c\u5219\u76f4\u63a5\u7981\u7528\u5e76\u81ea\u884c\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u76ee\u524d\u4ec5\u4ec5\u662f\u6d4b\u8bd5\u7248\u672c\uff0c\u53ef\u80fd\u4f1a\u9047\u89c1\u5404\u79cd\u95ee\u9898\uff08\u4f8b\u5982\u56fe\u6807\u7f3a\u5931\u7b49\uff09\uff0c\u5982\u679c\u5728\u7528 flatpak \u7248\u672c\u7684\u65f6\u5019\u6709\u4efb\u4f55\u95ee\u9898\u8bf7\u6c47\u62a5\u5230 https:\/\/github.com\/fcitx\/flatpak-fcitx5\/ \u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6298\u817e\u4e86\u5f88\u4e45\u7684\u81ea\u52a8\u6784\u5efa\uff0c\u73b0\u5728\u7ec8\u4e8e\u53ef\u4ee5\u62ff\u51fa\u6765\u7ed9\u5927\u5bb6\u7528\u4e00\u4e0b\u4e86\u3002\u5f53\u7136\uff0c\u636e\u8bf4 flathub \u6709\u7279\u8272\u7f51\u7edc\u95ee\u9898\u2026\u2026\u8fd9\u90e8\u5206\u6211\u5c31\u4e0d\u8d1f\u8d23\u89e3\u51b3\u4e86\u3002 \u9996\u5148\u6dfb\u52a0\u6e90\uff1a \u5b89\u88c5 Fcitx 5 \u548c\u8f93\u5165\u6cd5\uff1a \u7136\u540e\uff0c\u5728\u672c\u5730\u975e flatpak \u7a0b\u5e8f\u4e0a\u4f7f\u7528\u7684\u8bdd\uff0c\u8fd8\u9700\u8981\u5b89\u88c5 fcitx 4\/5 \u7684 im module\u3002\u8fd9\u4e2a repo \u9664\u4e86\u63d0\u4f9b\u53e6\u4e00\u79cd\u66f4\u65b0\u65b9\u5f0f\u4e4b\u5916\uff0c\u4e5f\u4e3b\u8981\u662f\u4e3a\u4e86\u65b9\u4fbf\u8fd8\u6ca1\u63d0\u4f9b fcitx 5 \u7684\u53d1\u884c\u7248\u6d4b\u8bd5\u3002fcitx 4 \u53ea\u8981\u662f\u6700\u8fd1\u7684\u7248\u672c\uff0c\u90fd\u53ef\u4ee5\u76f4\u63a5\u548c fcitx 5 \u914d\u5408\u4f7f\u7528\u3002\u73af\u5883\u53d8\u91cf\u65b9\u9762\u5f53\u7136\u8fd8\u662f\u548c\u8fc7\u53bb\u4e00\u6837\uff0c\u6bd4\u8f83\u4f20\u7edf\u7684\u5c31\u662f\u8bbe\u7f6e\u5728 ~\/.xprofile \u91cc\u9762\uff08\u548c\u8fc7\u53bb\u4e00\u6837\uff0c\u5982\u679c\u4f60\u5df2\u7ecf\u5bf9 fcitx 4 \u8fdb\u884c\u8bbe\u7f6e\u4e86\u5c31\u4e0d\u7528\u4fee\u6539\u4ec0\u4e48\u3002\uff09 \u81ea\u52a8\u542f\u52a8\u5c31\u628a flatpak \u7684 fcitx 5 \u7684 desktop file \u52a0\u5165\u5230\u81ea\u52a8\u542f\u52a8\u5373\u53ef\u3002\u4f46\u76f8\u5bf9\u7684\u4e5f\u9700\u8981\u963b\u6b62 &hellip; <a href=\"https:\/\/www.csslayer.info\/wordpress\/fcitx-dev\/fcitx5-on-flatpak\/\">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,251],"class_list":["post-2478","post","type-post","status-publish","format-standard","hentry","category-fcitx-dev","tag-fcitx","tag-fcitx5","tag-flatpak"],"_links":{"self":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2478","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=2478"}],"version-history":[{"count":3,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2478\/revisions"}],"predecessor-version":[{"id":2483,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/posts\/2478\/revisions\/2483"}],"wp:attachment":[{"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/media?parent=2478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/categories?post=2478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.csslayer.info\/wordpress\/wp-json\/wp\/v2\/tags?post=2478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}