Advertisement
xiaohuba

Untitled

Jan 4th, 2025
32
0
216 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.97 KB | None | 0 0
  1. # 系统信息:
  2. 1. `uname -a`:
  3. [removed, feel free to ask me if it's necessary]
  4.  
  5. 2. `lsb_release -a`:
  6.  
  7. Distributor ID: Ubuntu
  8. Description: Ubuntu 24.04.1 LTS
  9. Release: 24.04
  10. Codename: noble
  11.  
  12. 3. `lsb_release -d`:
  13.  
  14. Description: Ubuntu 24.04.1 LTS
  15.  
  16. 4. `/etc/lsb-release`:
  17.  
  18. DISTRIB_ID=Ubuntu
  19. DISTRIB_RELEASE=24.04
  20. DISTRIB_CODENAME=noble
  21. DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
  22.  
  23. 5. `/etc/os-release`:
  24.  
  25. PRETTY_NAME="Ubuntu 24.04.1 LTS"
  26. NAME="Ubuntu"
  27. VERSION_ID="24.04"
  28. VERSION="24.04.1 LTS (Noble Numbat)"
  29. VERSION_CODENAME=noble
  30. ID=ubuntu
  31. ID_LIKE=debian
  32. HOME_URL="https://www.ubuntu.com/"
  33. SUPPORT_URL="https://help.ubuntu.com/"
  34. BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
  35. PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
  36. UBUNTU_CODENAME=noble
  37. LOGO=ubuntu-logo
  38.  
  39. 6. 桌面环境:
  40.  
  41. 桌面环境为 `gnome3`。
  42.  
  43. 7. XDG 会话类型:
  44.  
  45. XDG_SESSION_TYPE='wayland'
  46.  
  47. 8. Bash 版本:
  48.  
  49. BASH_VERSION='5.2.21(1)-release'
  50.  
  51. # 环境:
  52. 1. DISPLAY:
  53.  
  54. DISPLAY=':0'
  55.  
  56.  
  57. WAYLAND_DISPLAY='wayland-0'
  58.  
  59. 2. 键盘布局:
  60.  
  61. 1. `setxkbmap`:
  62.  
  63. WARNING: Running setxkbmap against an Xwayland server
  64. xkb_keymap {
  65. xkb_keycodes { include "evdev+aliases(qwerty)" };
  66. xkb_types { include "complete" };
  67. xkb_compat { include "complete" };
  68. xkb_symbols { include "pc+us+inet(evdev)" };
  69. xkb_geometry { include "pc(pc105)" };
  70. };
  71.  
  72. 2. `xprop`:
  73.  
  74. _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
  75.  
  76. 3. Locale:
  77.  
  78. 1. 全部可用 locale:
  79.  
  80. C
  81. C.utf8
  82. en_AG
  83. en_AG.utf8
  84. en_AU.utf8
  85. en_BW.utf8
  86. en_CA.utf8
  87. en_DK.utf8
  88. en_GB.utf8
  89. en_HK.utf8
  90. en_IE.utf8
  91. en_IL
  92. en_IL.utf8
  93. en_IN
  94. en_IN.utf8
  95. en_NG
  96. en_NG.utf8
  97. en_NZ.utf8
  98. en_PH.utf8
  99. en_SG.utf8
  100. en_US.utf8
  101. en_ZA.utf8
  102. en_ZM
  103. en_ZM.utf8
  104. en_ZW.utf8
  105. POSIX
  106. zh_CN.utf8
  107. zh_SG.utf8
  108.  
  109. 2. 当前 locale:
  110.  
  111. LANG=zh_CN.UTF-8
  112. LANGUAGE=zh_CN:en_US:en
  113. LC_CTYPE="zh_CN.UTF-8"
  114. LC_NUMERIC=zh_CN.UTF-8
  115. LC_TIME=zh_CN.UTF-8
  116. LC_COLLATE="zh_CN.UTF-8"
  117. LC_MONETARY=zh_CN.UTF-8
  118. LC_MESSAGES="zh_CN.UTF-8"
  119. LC_PAPER=zh_CN.UTF-8
  120. LC_NAME=zh_CN.UTF-8
  121. LC_ADDRESS=zh_CN.UTF-8
  122. LC_TELEPHONE=zh_CN.UTF-8
  123. LC_MEASUREMENT=zh_CN.UTF-8
  124. LC_IDENTIFICATION=zh_CN.UTF-8
  125. LC_ALL=
  126.  
  127. 4. 目录:
  128.  
  129. 1. 主目录:
  130.  
  131. /home/[my username, removed]
  132.  
  133. 2. `${XDG_CONFIG_HOME}`:
  134.  
  135. 环境变量 `XDG_CONFIG_HOME` 没有设定。
  136.  
  137. `XDG_CONFIG_HOME` 的当前值是 `~/.config` (`/home/[my username]/.config`)。
  138.  
  139. 3. Fcitx5 设置目录:
  140.  
  141. 当前 fcitx5 设置目录是 `~/.config/fcitx5` (`/home/[my username]/.config/fcitx5`)。
  142.  
  143. 5. 当前用户:
  144.  
  145. 脚本作为 [my username] (1000) 运行。
  146.  
  147. # Fcitx 状态:
  148. 1. 可执行文件:
  149.  
  150. 在 `/usr/bin/fcitx5` 找到了 fcitx5。
  151.  
  152. 2. 版本:
  153.  
  154. Fcitx 版本: `5.1.7`
  155.  
  156. 3. 进程:
  157.  
  158. 找到了 1 个 fcitx5 进程:
  159.  
  160. 3563 fcitx5
  161.  
  162. 4. `fcitx5-remote`:
  163.  
  164. `fcitx5-remote` 工作正常。
  165.  
  166. 5. DBus 界面:
  167.  
  168. 使用 `dbus-send` 来检查 dbus。
  169.  
  170. DBus 名称 `org.fcitx.Fcitx5` 的所有者是 `:1.85`。
  171.  
  172. DBus 名称 `org.fcitx.Fcitx5` 的 PID 所有者是 `3563`。
  173.  
  174. 来自 dbus 的调试信息:
  175.  
  176. Group [x11::0] has 0 InputContext(s)
  177. Group [wayland:] has 5 InputContext(s)
  178. IC [fee9340d9d2349d2aeccfa71867efada] program:org.gnome.Nautilus frontend:dbus cap:4001000032 focus:0
  179. IC [8d946ad303c04e809ba570a2b4af7dfd] program:gnome-terminal-server frontend:dbus cap:6001000032 focus:1
  180. IC [f2f7df07339d48f1b19644170f0395a3] program:org.gnome.Nautilus frontend:dbus cap:4001021072 focus:0
  181. IC [b6b2642c4b834c929777fa14db5fc868] program:sublime_text frontend:dbus cap:6001000020 focus:0
  182. IC [9f1f250ef47d4680aa8df4f539960021] program: frontend:ibus cap:52 focus:0
  183. Input Context without group
  184.  
  185. # Fcitx 配置界面:
  186. 1. 配置工具封装:
  187.  
  188. 在 `/usr/bin/fcitx5-configtool` 找到了 fcitx5-configtool。
  189.  
  190. 2. Qt 的配置界面:
  191.  
  192. 在 `/usr/bin/fcitx5-config-qt` 找到了 `fcitx5-config-qt`。
  193.  
  194. 3. KDE 的配置界面:
  195.  
  196. **`kcmshell5` 未找到.**
  197.  
  198. # 前端设置:
  199. 此脚本检查的环境变量仅能显示当前命令行的环境。仍有可能您的环境并没有应用于整个桌面。您可以通过使用命令对某个无法正常工作的进程使用命令 `xargs -0 -L1 /proc/$PID/environ` 检查此进程的实际的环境变量。
  200.  
  201. ## Xim:
  202. 1. `${XMODIFIERS}`:
  203.  
  204. 环境变量 XMODIFIERS 已经正确地设为了“@im=fcitx”。
  205. 从环境变量中获取的 Xim 服务名称为 fcitx.
  206.  
  207. 2. 根窗口上的 XIM_SERVERS:
  208.  
  209. Xim 服务的名称与环境变量中设置的相同。
  210.  
  211. ## Qt:
  212. 1. qt4 - `${QT4_IM_MODULE}`:
  213.  
  214. 环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。
  215.  
  216. **`fcitx5-qt4-immodule-probing` 未找到.**
  217.  
  218. 2. qt5 - `${QT_IM_MODULE}`:
  219.  
  220. 环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。
  221.  
  222. 使用 fcitx5-qt5-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
  223.  
  224. QT_QPA_PLATFORM=wayland
  225. QT_IM_MODULE=fcitx
  226. IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
  227.  
  228. 3. qt6 - `${QT_IM_MODULE}`:
  229.  
  230. 环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。
  231.  
  232. 使用 fcitx5-qt6-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
  233.  
  234. QT_QPA_PLATFORM=wayland
  235. QT_IM_MODULE=fcitx
  236. IM_MODULE_CLASSNAME=fcitx::QFcitxPlatformInputContext
  237.  
  238. 4. Qt 输入法模块文件:
  239.  
  240. 找到了 fcitx5 的 qt5 输入法模块:`/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。
  241. 找到了 fcitx5 的 qt6 输入法模块:`/lib/x86_64-linux-gnu/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。
  242. 找到了 fcitx5 qt6 模块:`/lib/x86_64-linux-gnu/fcitx5/qt6/libfcitx-quickphrase-editor5.so`。
  243.  
  244. 下列错误也许并不准确,因为对路径所对应的 Qt 版本的猜测取决于发行版如何打包 Qt。如果您不使用任何对应版本的 Qt 程序,或者在 Wayland 下使用 Qt 的 text-input 支持,下列错误也不是严重问题。
  245. **无法找到 Qt4 的 fcitx5 输入法模块。**
  246.  
  247. ## Gtk:
  248. 1. gtk - `${GTK_IM_MODULE}`:
  249.  
  250. 环境变量 GTK_IM_MODULE 已经正确地设为了“fcitx”。
  251.  
  252. 使用 fcitx5-gtk2-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
  253.  
  254. GTK_IM_MODULE=fcitx
  255.  
  256. 使用 fcitx5-gtk3-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
  257.  
  258. GTK_IM_MODULE=fcitx
  259.  
  260. 使用 fcitx5-gtk4-immodule-probing 来检查在当前环境下将被实际使用的输入法模块:
  261.  
  262. GTK_IM_MODULE=fcitx
  263.  
  264. 2. `gtk-query-immodules`:
  265.  
  266. 1. gtk 2:
  267.  
  268. **无法找到 gtk 2 的 `gtk-query-immodules`。**
  269.  
  270. **无法找到 gtk 2 的 fcitx5 输入法模块。**
  271.  
  272. 2. gtk 3:
  273.  
  274. **无法找到 gtk 3 的 `gtk-query-immodules`。**
  275.  
  276. **无法找到 gtk 3 的 fcitx5 输入法模块。**
  277.  
  278. 3. Gtk 输入法模块缓存:
  279.  
  280. 1. gtk 2:
  281.  
  282. 在 `/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache` 找到了 gtk `2.24.33` 的输入法模块缓存。
  283. 版本行:
  284.  
  285. # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0t64/gtk-query-immodules-2.0 from gtk+-2.24.33
  286.  
  287. 已找到 gtk `2.24.33` 的 fcitx5 输入法模块。
  288.  
  289. "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx5.so"
  290. "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
  291. "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
  292.  
  293. 2. gtk 3:
  294.  
  295. 在 `/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.24.41` 的输入法模块缓存。
  296. 版本行:
  297.  
  298. # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0t64/gtk-query-immodules-3.0 from gtk+-3.24.41
  299.  
  300. 已找到 gtk `3.24.41` 的 fcitx5 输入法模块。
  301.  
  302. "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
  303. "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
  304. "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
  305.  
  306. 在 `/lib/i386-linux-gnu/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.24.41` 的输入法模块缓存。
  307. 版本行:
  308.  
  309. # Created by /usr/lib/i386-linux-gnu/libgtk-3-0t64/gtk-query-immodules-3.0 from gtk+-3.24.41
  310.  
  311. **无法输入法模块缓存 `/lib/i386-linux-gnu/gtk-3.0/3.0.0/immodules.cache` 中找到 fcitx5**
  312.  
  313. 4. Gtk 输入法模块文件:
  314.  
  315. 1. gtk 2:
  316.  
  317. 找到的全部 Gtk 2 输入法模块文件均存在。
  318.  
  319. 2. gtk 3:
  320.  
  321. 找到的全部 Gtk 3 输入法模块文件均存在。
  322.  
  323. 3. gtk 4:
  324.  
  325. 找到的全部 Gtk 4 输入法模块文件均存在。
  326.  
  327. # 配置:
  328. ## Fcitx 插件:
  329. 1. 插件配置文件目录:
  330.  
  331. 找到了 fcitx5 的插件配置目录:`/usr/share/fcitx5/addon`。
  332.  
  333. 2. 插件列表:
  334.  
  335. 1. 找到了 30 个已启用的插件:
  336.  
  337. Chewing 5.1.1
  338. Simplified and Traditional Chinese Translation 5.1.3
  339. Classic User Interface 5.1.7
  340. Clipboard 5.1.7
  341. Cloud Pinyin 5.1.3
  342. DBus 5.1.7
  343. DBus Frontend 5.1.7
  344. Emoji 5.1.7
  345. Fcitx4 Frontend 5.1.7
  346. Full width character 5.1.3
  347. IBus Frontend 5.1.7
  348. Lua IME API 5.0.12
  349. Input method selector 5.1.7
  350. Keyboard 5.1.7
  351. KDE Input Method Panel 5.1.7
  352. Lua Addon Loader 5.0.12
  353. Status Notifier 5.1.7
  354. Notification 5.1.7
  355. Pinyin 5.1.3
  356. Extra Pinyin functionality 5.1.3
  357. Punctuation 5.1.3
  358. Quick Phrase 5.1.7
  359. Spell 5.1.7
  360. Table 5.1.3
  361. Unicode 5.1.7
  362. DBus Virtual Keyboard 5.1.7
  363. Wayland 5.1.7
  364. Wayland Input method frontend 5.1.7
  365. XCB 5.1.7
  366. X Input Method Frontend 5.1.7
  367.  
  368. 2. 找到了 0 个被禁用的插件:
  369.  
  370. 3. 插件库:
  371.  
  372. 所有插件所需的库都被找到。
  373.  
  374. 4. 用户界面:
  375.  
  376. 找到了 3 个已启用的用户界面插件:
  377.  
  378. Classic User Interface
  379. KDE Input Method Panel
  380. DBus Virtual Keyboard
  381.  
  382. Kimpanel 进程:
  383.  
  384. 3229 /usr/bin/gnome-shell
  385.  
  386. ## 输入法:
  387. 1. `$HOME/.config/fcitx5/profile`:
  388.  
  389. [Groups/0]
  390. # Group Name
  391. Name=默认
  392. # Layout
  393. Default Layout=us
  394. # Default Input Method
  395. DefaultIM=pinyin
  396.  
  397. [Groups/0/Items/0]
  398. # Name
  399. Name=keyboard-us
  400. # Layout
  401. Layout=
  402.  
  403. [Groups/0/Items/1]
  404. # Name
  405. Name=pinyin
  406. # Layout
  407. Layout=
  408.  
  409. [GroupOrder]
  410. 0=默认
  411.  
  412. # 日志:
  413. 1. `date`:
  414.  
  415. 2025年 01月 04日 星期六 14:15:03 CST
  416.  
  417. 2. `$HOME/.config/fcitx5/crash.log`:
  418.  
  419. `$HOME/.config/fcitx5/crash.log` 未找到.
  420.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement