Linux 版 ChatGPT 桌面应用中的 Codex 功能现已开启预览。
Codex in ChatGPT desktop app for Linux is now in preview

原始链接: https://community.openai.com/t/codex-in-chatgpt-desktop-app-for-linux-is-now-in-preview/1390027

要在 Fedora KDE Plasma (Wayland) 环境下解决官方 Linux 版 ChatGPT/Codex 应用的日文输入法 (Fcitx 5) 问题,无需退回到 XWayland。 只需在启动应用时加入特定参数,强制启用原生 Wayland 输入法支持即可: `--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime` 若要永久生效,请将 `chatgpt.desktop` 文件复制到 `~/.local/share/applications/` 目录下,并将上述参数追加到 `Exec` 行中。执行 `kbuildsycoca6` 后,即可在保持 Wayland 原生环境的同时正常使用日文输入。 考虑到类似的 Chromium/Electron 应用经常遇到此类兼容性障碍,若未来版本的 Linux 桌面端能默认启用这些参数,将能显著提升 Wayland 用户的使用体验。

Hacker News | 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 | 登录 适用于 Linux 的 ChatGPT 桌面版 (Codex Desktop) (openai.com) 17 点积分 | allanrbo 发布于 2 小时前 | 隐藏 | 过往 | 收藏 | 4 条评论 | 帮助 pdhborges 0 分钟前 | 下一条 [-] 对于那些没用过这些桌面应用的人来说,它相比带有多个 MPC 和各自上下文文件夹的 CLI Codex 有什么优势?回复 torh 2 分钟前 | 上一条 | 下一条 [-] 仅供参考:此链接会根据你当前的操作系统显示 Codex。我看到的是挪威语的着陆页,并提供了一个 Windows 下载链接。回复 wltr 2 分钟前 | 上一条 | 下一条 [-] 如果这是一个 Electron 应用,那它和在浏览器中运行有什么区别?回复 villgax 4 分钟前 | 上一条 [-] 擅长 Linux 的人不会把希望寄托在那些将智能技术作为溢价产品并根据政策将其“扣押”的公司身上。回复 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

I installed the new Linux ChatGPT/Codex desktop app from the official x64 RPM and encountered a Japanese IME issue on Fedora KDE.

Environment

  • Fedora 44 x86_64
  • KDE Plasma / Wayland
  • Fcitx 5
  • Japanese input method
  • Official ChatGPT/Codex Linux RPM

Issue

When ChatGPT is launched normally from the KDE application menu, I cannot switch to Japanese input inside the message composer.

Japanese input works normally in native KDE applications such as KWrite.

I have encountered a similar IME compatibility issue with another Chromium/Electron-based application, Obsidian, on the same Fedora/KDE/Wayland environment. In that case, I ultimately had to run Obsidian through XWayland to get Fcitx Japanese input working reliably.

Because of that, I initially suspected that ChatGPT might require the same XWayland workaround.

However, ChatGPT/Codex can be fixed without falling back to XWayland.

Wayland-native workaround

Launching ChatGPT with:

chatgpt \
  --enable-features=UseOzonePlatform \
  --ozone-platform=wayland \
  --enable-wayland-ime

immediately enables Japanese input in the message composer.

So, unlike the workaround I needed for Obsidian, ChatGPT can remain Wayland-native. It appears that explicitly enabling Wayland IME support is sufficient.

I then copied the ChatGPT .desktop file to:

~/.local/share/applications/

and changed its Exec= line to:

Exec=chatgpt --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime %U

After running:

kbuildsycoca6

I can now launch ChatGPT normally from the KDE application menu and switch to Japanese input successfully.

Summary

There seem to be recurring IME compatibility issues with some Chromium/Electron-style applications on Fedora + KDE Plasma + Wayland + Fcitx.

In this case, however, ChatGPT/Codex does not need an XWayland fallback. Enabling Wayland IME support explicitly is enough:

--enable-features=UseOzonePlatform
--ozone-platform=wayland
--enable-wayland-ime

This makes me wonder whether these options, particularly --enable-wayland-ime, could be enabled by default in the Linux desktop app where appropriate.

Since the Linux app has just entered preview, I wanted to share the reproduction details and confirmed Wayland-native workaround.

联系我们 contact @ memedata.com