Skip to content

[BUG] <title>Chinese input method problem #97

@zhangliuda

Description

@zhangliuda

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am using the Obsidian Docker image created by Linuxserver, along with your VNC service. When I open the web interface and connect to the service via VNC, I encounter an issue with Chinese input. After typing a few or several characters, I can no longer input text. However, the characters entered before the issue occurred are successfully displayed.

I came across the following note:
The web interface has the option for "IME Input Mode" in Settings which will allow non-English characters to be used from a non-en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
However, I could not find the corresponding setting in VNC.

Expected Behavior

No response

Steps To Reproduce

Based on my testing, I found that normal text input does not cause any issues. When inputting Chinese, I type out the pinyin and then press the spacebar to convert it to Chinese characters. The problem arises when I type the pinyin for five or six characters but do not convert all of them into Chinese characters before pressing Enter. This triggers the issue. Restarting Docker resolves the problem temporarily.

Environment

- OS:ubuntu
- How docker service was installed:

Docker creation

version: '3.8'
services:
  obsidian:
    image: lscr.io/linuxserver/obsidian:latest
    container_name: obsidian
    security_opt:
      - seccomp:unconfined  # 可选,若有 GUI 应用兼容性问题时使用
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Shanghai
      - LC_ALL=zh_CN.UTF-8  # 设置中文环境
    volumes:
      - /home/zhang/obsidian:/config  # 存储配置文件
    ports:
      - 8331:3001  # 将容器的 3000 端口映射到宿主机的 8331 端口
    shm_size: "1gb"  # 设置共享内存大小,避免 Electron 应用出错
    restart: unless-stopped

Container logs

2025-01-13 00:55:57,856 [PRIO] Input: Failure adding new keysym 0x10073b0
 2025-01-13 00:55:59,067 [PRIO] Input: Failure adding new keysym 0x100ff0c
 2025-01-13 00:56:02,624 [PRIO] Input: Failure adding new keysym 0x1004e0d
 2025-01-13 00:56:02,624 [PRIO] Input: Failure adding new keysym 0x10076f8
 2025-01-13 00:56:02,624 [PRIO] Input: Failure adding new keysym 0x1004fe1
 2025-01-13 00:56:04,321 [PRIO] Input: Failure adding new keysym 0x1006ce8
 2025-01-13 00:56:04,321 [PRIO] Input: Failure adding new keysym 0x100610f
 2025-01-13 00:56:06,444 [PRIO] Input: Failure adding new keysym 0x100679c
 2025-01-13 00:56:06,444 [PRIO] Input: Failure adding new keysym 0x1007136
 2025-01-13 00:56:08,659 [PRIO] Input: Failure adding new keysym 0x10073b0
 2025-01-13 00:56:09,037 [PRIO] Input: Failure adding new keysym 0x1004e86

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions