nextalk icon indicating copy to clipboard operation
nextalk copied to clipboard

Fcitx5 is unavailable; using clipboard mode.

Open e3e0261f opened this issue 10 months ago • 23 comments

[HotkeyController] 📋 Fcitx5 unavailable, using clipboard mode
[HotkeyController] 📋 Text copied to clipboard: ‘-’
MenuItemBase Select menu ID:1 Menu item ID:4
TrayService: Fcitx5 reconnection failed: FcitxError.connectionFailed
Method call: SetSystemTrayInfo
SystemTray::set_system_tray_info Title: (null), Icon path: /opt/nextalk/data/flutter_assets/assets/icons/tray_icon_warning.png, Tooltip: (null)
Image
❯ ls ~/.local/lib/fcitx5/libnextalk.so
  ls ~/.local/share/fcitx5/addon/nextalk.conf
"/home/lee/.local/lib/fcitx5/libnextalk.so": No such file or directory (os error 2)
"/home/lee/.local/share/fcitx5/addon/nextalk.conf": No such file or directory (os error 2)
❯ fd '(libnextalk\.so|nextalk\.conf)$'
usr/share/fcitx5/addon/nextalk.conf
usr/lib/x86_64-linux-gnu/fcitx5/libnextalk.so
Image ```
  • make successful
❯ make build-addon
🔨 构建 Fcitx5 插件...
mkdir -p addons/fcitx5/build
cd addons/fcitx5/build && cmake .. && make -j$(nproc)
-- Addon version: 0.3.0
-- Fcitx5 addon dir: /usr/local/lib/fcitx5
-- Fcitx5 pkgdata dir: /usr/local/share/fcitx5
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/lee/DOwn/nextalk/addons/fcitx5/build
make[1]: 进入目录“/home/lee/DOwn/nextalk/addons/fcitx5/build”
[ 50%] Building CXX object CMakeFiles/nextalk.dir/src/nextalk.cpp.o
[100%] Linking CXX shared module libnextalk.so
[100%] Built target nextalk
make[1]: 离开目录“/home/lee/DOwn/nextalk/addons/fcitx5/build”

nextalk on  main
❯ make install-addon
🔨 构建 Fcitx5 插件...
mkdir -p addons/fcitx5/build
cd addons/fcitx5/build && cmake .. && make -j$(nproc)
-- Addon version: 0.3.0
-- Fcitx5 addon dir: /usr/local/lib/fcitx5
-- Fcitx5 pkgdata dir: /usr/local/share/fcitx5
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/lee/DOwn/nextalk/addons/fcitx5/build
make[1]: 进入目录“/home/lee/DOwn/nextalk/addons/fcitx5/build”
[100%] Built target nextalk
make[1]: 离开目录“/home/lee/DOwn/nextalk/addons/fcitx5/build”
📦 安装 Fcitx5 插件...
./scripts/install_addon.sh

═══════════════════════════════════════════════════════════
  Nextalk Fcitx5 Plugin Installer v0.3.0
  Install mode: user
═══════════════════════════════════════════════════════════

[ℹ] Checking dependencies...
[✓] cmake found
[✓] make found
[✓] pkg-config found
[✓] fcitx5 found
[✓] fcitx5-dev (5.1.12)
[✓] All dependencies satisfied

[ℹ] Checking build artifacts...
[✓] Build artifacts found: libnextalk.so, nextalk.conf

[ℹ] Installing plugin...
[ℹ]   Plugin directory: /home/lee/.local/lib/fcitx5
[ℹ]   Config directory: /home/lee/.local/share/fcitx5/addon
[✓] Plugin installed successfully

═══════════════════════════════════════════════════════════
Installation Complete!
═══════════════════════════════════════════════════════════

Installed files:
  Plugin: /home/lee/.local/lib/fcitx5/libnextalk.so
  Config: /home/lee/.local/share/fcitx5/addon/nextalk.conf

Next steps:
  1. Restart Fcitx5:  fcitx5 -r
  2. Verify plugin:   ./scripts/install_addon.sh --verify
[SingleInstance] Connection received
[SingleInstance] Command received: toggle
[HotkeyController] Hotkey pressed, current state: HotkeyState.recording
[PulseAudioCapture] ⏹️ Recording stopped
[HotkeyController] 🔔 VAD endpoint: isVad=false, text="Immerse yourself in the device.", duration=9984ms, deviceLost=false
[HotkeyController] 📝 Final text: ‘Immerse yourself in the device.’
[HotkeyController] ✅ Text submitted
Immerse yourself in the device.
~ via  took 3m29s
❯ fd '(libnextalk\.so|nextalk\.conf)$' ~/.local
/home/lee/.local/lib/fcitx5/libnextalk.so
/home/lee/.local/share/fcitx5/addon/nextalk.conf
  • This error can be resolved manually.
  • However, the DEB package remains problematic.

e3e0261f avatar Jan 14 '26 04:01 e3e0261f

Hi @e3e0261f,

Thank you for reporting this issue! This appears to be a DEB packaging path mismatch problem.

Analysis:

Our DEB package installs the Fcitx5 plugin to:

  • /usr/lib/x86_64-linux-gnu/fcitx5/libnextalk.so
  • /usr/share/fcitx5/addon/nextalk.conf

However, Fcitx5 may not search this path for plugins. We need to determine the correct plugin directory on your system.

Could you please run the following commands and share the output?

# 1. Check Fcitx5's expected plugin directory
pkg-config --variable=addondir fcitx5

# 2. Check where other Fcitx5 plugins are installed
ls -la /usr/lib/fcitx5/ 2>/dev/null || echo "Not found"
ls -la /usr/lib/x86_64-linux-gnu/fcitx5/ 2>/dev/null || echo "Not found"
ls -la /usr/local/lib/fcitx5/ 2>/dev/null || echo "Not found"

# 3. Find all installed Fcitx5 addon .so files
find /usr -name "*.so" -path "*/fcitx5/*" 2>/dev/null | head -20

# 4. Check addon config directory
ls -la /usr/share/fcitx5/addon/ 2>/dev/null | head -10

Temporary Workaround:

Until we fix the DEB package, you can create a symlink:

sudo mkdir -p /usr/lib/fcitx5
sudo ln -s /usr/lib/x86_64-linux-gnu/fcitx5/libnextalk.so /usr/lib/fcitx5/
sudo fcitx5 -r

This information will help us fix the DEB packaging to use the correct Fcitx5 plugin path.

Thank you for your patience!

gonewx avatar Jan 14 '26 06:01 gonewx

❯ # 1. Check Fcitx5's expected plugin directory
  pkg-config --variable=addondir fcitx5

  # 2. Check where other Fcitx5 plugins are installed
  ls -la /usr/lib/fcitx5/ 2>/dev/null || echo "Not found"
  ls -la /usr/lib/x86_64-linux-gnu/fcitx5/ 2>/dev/null || echo "Not found"
  ls -la /usr/local/lib/fcitx5/ 2>/dev/null || echo "Not found"

  # 3. Find all installed Fcitx5 addon .so files
  find /usr -name "*.so" -path "*/fcitx5/*" 2>/dev/null | head -20

  # 4. Check addon config directory
  ls -la /usr/share/fcitx5/addon/ 2>/dev/null | head -10
Not found
.rw-r--r--  88k root  2 5月   2025 keyman.so
.rw-r--r-- 584k root 24 1月   2025 libchttrans.so
.rw-r--r-- 957k root 21 3月   2025 libclassicui.so
.rw-r--r-- 322k root 21 3月   2025 libclipboard.so
.rw-r--r--  96k root 24 1月   2025 libcloudpinyin.so
.rw-r--r-- 318k root 21 3月   2025 libdbus.so
.rw-r--r-- 150k root 21 3月   2025 libdbusfrontend.so
.rw-r--r--  47k root 21 3月   2025 libemoji.so
drwxr-xr-x    - root  5 10月  2025 libexec
.rw-r--r-- 105k root 21 3月   2025 libfcitx4frontend.so
.rw-r--r--  56k root 24 1月   2025 libfullwidth.so
.rw-r--r-- 268k root 21 3月   2025 libibusfrontend.so
.rw-r--r--  68k root 21 3月   2025 libimselector.so
.rw-r--r-- 101k root 21 3月   2025 libkimpanel.so
.rw-r--r-- 125k root 28 1月   2025 libluaaddonloader.so
.rwxr-xr-x  55k root 13 1月  21:16 libnextalk.so
.rw-r--r-- 195k root 21 3月   2025 libnotificationitem.so
.rw-r--r--  68k root 21 3月   2025 libnotifications.so
.rw-r--r-- 708k root 24 1月   2025 libpinyin.so
.rw-r--r-- 219k root 24 1月   2025 libpinyinhelper.so
.rw-r--r-- 137k root 24 1月   2025 libpunctuation.so
.rw-r--r-- 121k root 21 3月   2025 libquickphrase.so
.rw-r--r-- 219k root  4 3月   2025 librime.so
.rw-r--r--  92k root 21 3月   2025 libspell.so
.rw-r--r-- 440k root 24 1月   2025 libtable.so
.rw-r--r--  31k root 21 3月   2025 libtestfrontend.so
.rw-r--r--  23k root 21 3月   2025 libtestim.so
.rw-r--r--  23k root 21 3月   2025 libtestui.so
.rw-r--r-- 223k root 21 3月   2025 libunicode.so
.rw-r--r--  72k root 21 3月   2025 libvirtualkeyboard.so
.rw-r--r-- 301k root 21 3月   2025 libwayland.so
.rw-r--r-- 585k root 21 3月   2025 libwaylandim.so
.rw-r--r-- 301k root 21 3月   2025 libxcb.so
.rw-r--r--  68k root 21 3月   2025 libxim.so
.rw-r--r-- 211k root 25 1月   2025 m17n.so
drwxr-xr-x    - root 19 10月  2025 qt5
drwxr-xr-x    - root  5 10月  2025 qt6
Not found
/usr/lib/x86_64-linux-gnu/fcitx5/libtestui.so
/usr/lib/x86_64-linux-gnu/fcitx5/libvirtualkeyboard.so
/usr/lib/x86_64-linux-gnu/fcitx5/qt5/libpinyindictmanager.so
/usr/lib/x86_64-linux-gnu/fcitx5/qt5/libcustomphraseeditor.so
/usr/lib/x86_64-linux-gnu/fcitx5/qt5/libfcitx-quickphrase-editor5.so
/usr/lib/x86_64-linux-gnu/fcitx5/librime.so
/usr/lib/x86_64-linux-gnu/fcitx5/libimselector.so
/usr/lib/x86_64-linux-gnu/fcitx5/libfullwidth.so
/usr/lib/x86_64-linux-gnu/fcitx5/libchttrans.so
/usr/lib/x86_64-linux-gnu/fcitx5/libpunctuation.so
/usr/lib/x86_64-linux-gnu/fcitx5/libquickphrase.so
/usr/lib/x86_64-linux-gnu/fcitx5/m17n.so
/usr/lib/x86_64-linux-gnu/fcitx5/libclipboard.so
/usr/lib/x86_64-linux-gnu/fcitx5/libwayland.so
/usr/lib/x86_64-linux-gnu/fcitx5/libcloudpinyin.so
/usr/lib/x86_64-linux-gnu/fcitx5/libwaylandim.so
/usr/lib/x86_64-linux-gnu/fcitx5/libemoji.so
/usr/lib/x86_64-linux-gnu/fcitx5/libnextalk.so
/usr/lib/x86_64-linux-gnu/fcitx5/libspell.so
/usr/lib/x86_64-linux-gnu/fcitx5/libunicode.so
.rw-r--r--  648 root 24 1月   2025 chttrans.conf
.rw-r--r--  642 root 21 3月   2025 classicui.conf
.rw-r--r--  479 root 21 3月   2025 clipboard.conf
.rw-r--r--  324 root 24 1月   2025 cloudpinyin.conf
.rw-r--r--  323 root 21 3月   2025 dbus.conf
.rw-r--r--  437 root 21 3月   2025 dbusfrontend.conf
.rw-r--r--  300 root 21 3月   2025 emoji.conf
.rw-r--r--  444 root 21 3月   2025 fcitx4frontend.conf
.rw-r--r--  415 root 24 1月   2025 fullwidth.conf
.rw-r--r--  411 root 21 3月   2025 ibusfrontend.conf
lee@DEGNU:~$ fcitx5-diagnose | grep -i addon
    The plugin configuration directory for fcitx5 has been located:`/usr/share/fcitx5/addon`。
            Lua Addon Loader 5.0.14

e3e0261f avatar Jan 14 '26 06:01 e3e0261f

Thank you for the detailed output! This is very helpful.

Good news: The plugin path is correct! libnextalk.so is installed in /usr/lib/x86_64-linux-gnu/fcitx5/ alongside other Fcitx5 plugins.

Next step: We need to verify the configuration file. Could you please run:

# 1. Check if nextalk.conf exists in addon directory
ls -la /usr/share/fcitx5/addon/nextalk.conf

# 2. If it exists, show its contents
cat /usr/share/fcitx5/addon/nextalk.conf

# 3. Check Fcitx5 addon loading status
fcitx5-diagnose 2>&1 | grep -A5 -i "nextalk"

# 4. Restart Fcitx5 and check logs
fcitx5 -r -d && sleep 2 && journalctl --user -u fcitx5 --since "2 minutes ago" 2>/dev/null || fcitx5 -r

Also, one important question: Did you restart Fcitx5 after installing the DEB package?

The DEB postinst script should automatically restart Fcitx5, but sometimes it may not work correctly. Please try:

fcitx5 -r

Then test if Nextalk works.

gonewx avatar Jan 14 '26 06:01 gonewx

❯ # 1. Check if nextalk.conf exists in addon directory
  ls -la /usr/share/fcitx5/addon/nextalk.conf

  # 2. If it exists, show its contents
  cat /usr/share/fcitx5/addon/nextalk.conf

  # 3. Check Fcitx5 addon loading status
  fcitx5-diagnose 2>&1 | grep -A5 -i "nextalk"

  # 4. Restart Fcitx5 and check logs
  fcitx5 -r -d && sleep 2 && journalctl --user -u fcitx5 --since "2 minutes ago" 2>/dev/null || fcitx5 -r
.rw-r--r-- 123 root 13 1月  21:16 /usr/share/fcitx5/addon/nextalk.conf
[Addon]
Name=Nextalk
Category=Module
Library=libnextalk
Type=SharedLibrary
OnDemand=False
Configurable=False
Version=0.3.0
          IC [a460333b3917411095c2fa7862d42ae8] program:nextalk frontend:fcitx4 cap:1000012 focus:0
          IC [fbceee002de349089392f64fa49264e8] program:floorp frontend:fcitx4 cap:1000012 focus:0
          IC [f113c6a481374dbfbbadcfdc59b28a0d] program:floorp frontend:fcitx4 cap:1000052 focus:0
          IC [d7a816be1609498d877bec1621f13702] program:hiddify frontend:fcitx4 cap:1000052 focus:0
        Group [wayland:] has 36 InputContext(s)
          IC [abf737cb7a1f4efb8bbc86d6f6a19f5e] program:Alacritty frontend:wayland cap:100000072 focus:1
--
            Nextalk 0.3.0
            Status Notifier 5.1.12
            Notification 5.1.12
            Pinyin 5.1.8
            Extra Pinyin functionality 5.1.8
            Punctuation 5.1.8
I2026-01-14 14:17:22.558846 instance.cpp:1394] Override Enabled Addons: {}
I2026-01-14 14:17:22.558939 instance.cpp:1395] Override Disabled Addons: {}
I2026-01-14 14:17:22.564788 xcbconnection.cpp:179] Set XFIXES client disconnect mode to TERMINATE
I2026-01-14 14:17:22.565203 xcbconnection.cpp:199] Connecting to X11 display, display name::0.
I2026-01-14 14:17:22.565265 xcbconnection.cpp:204] X11 display: :0 is xwayland.
I2026-01-14 14:17:22.565375 addonmanager.cpp:205] Loaded addon xcb
I2026-01-14 14:17:22.568362 addonmanager.cpp:205] Loaded addon wayland
I2026-01-14 14:17:22.568627 addonmanager.cpp:205] Loaded addon imselector
I2026-01-14 14:17:22.569283 addonmanager.cpp:205] Loaded addon clipboard
I2026-01-14 14:17:22.570858 addonmanager.cpp:205] Loaded addon keyman
I2026-01-14 14:17:22.571242 addonmanager.cpp:205] Loaded addon waylandim
I2026-01-14 14:17:22.571477 nextalk.cpp:37] Nextalk addon initializing (SCP-002 simplified)...
I2026-01-14 14:17:22.571567 nextalk.cpp:45] Nextalk addon initialized
I2026-01-14 14:17:22.571590 nextalk.cpp:46] Text socket: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 14:17:22.571615 addonmanager.cpp:205] Loaded addon nextalk
I2026-01-14 14:17:22.571668 nextalk.cpp:123] Socket listening at: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 14:17:22.573457 addonmanager.cpp:205] Loaded addon quickphrase
I2026-01-14 14:17:22.575817 addonmanager.cpp:205] Loaded addon m17n
I2026-01-14 14:17:22.583864 addonmanager.cpp:205] Loaded addon keyboard
I2026-01-14 14:17:22.584201 addonmanager.cpp:205] Loaded addon unicode
I2026-01-14 14:17:22.585347 addonmanager.cpp:205] Loaded addon pinyinhelper
I2026-01-14 14:17:22.586003 addonmanager.cpp:205] Loaded addon luaaddonloader
E2026-01-14 14:17:22.587852 addonloader.cpp:95] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2026-01-14 14:17:22.587892 addonmanager.cpp:201] Could not load addon dbus
I2026-01-14 14:17:22.587939 addonmanager.cpp:308] Unloading addon luaaddonloader
I2026-01-14 14:17:22.587975 addonmanager.cpp:308] Unloading addon pinyinhelper
I2026-01-14 14:17:22.588016 addonmanager.cpp:308] Unloading addon unicode
I2026-01-14 14:17:22.588053 addonmanager.cpp:308] Unloading addon keyboard
I2026-01-14 14:17:22.588214 addonmanager.cpp:308] Unloading addon m17n
I2026-01-14 14:17:22.588259 addonmanager.cpp:308] Unloading addon quickphrase
I2026-01-14 14:17:22.588450 addonmanager.cpp:308] Unloading addon nextalk
I2026-01-14 14:17:22.588484 nextalk.cpp:50] Nextalk addon shutting down...
I2026-01-14 14:17:22.588631 addonmanager.cpp:308] Unloading addon waylandim
I2026-01-14 14:17:22.588674 addonmanager.cpp:308] Unloading addon keyman
I2026-01-14 14:17:22.588703 addonmanager.cpp:308] Unloading addon clipboard
I2026-01-14 14:17:22.588747 addonmanager.cpp:308] Unloading addon imselector
I2026-01-14 14:17:22.588784 addonmanager.cpp:308] Unloading addon wayland
I2026-01-14 14:17:22.588907 addonmanager.cpp:308] Unloading addon xcb
-- No entries --
  • fcitx5 -r has been executed but to no avail.
  • I have also attempted to close and re-select fcitx5 via the KDE UI interface, yet to no avail.

e3e0261f avatar Jan 14 '26 06:01 e3e0261f

Excellent! The logs reveal the real issue.

Good news: The DEB package installation is correct!

The logs show Nextalk plugin was successfully loaded:

nextalk.cpp:37] Nextalk addon initializing (SCP-002 simplified)...
nextalk.cpp:45] Nextalk addon initialized
nextalk.cpp:123] Socket listening at: /run/user/1000/nextalk-fcitx5.sock
addonmanager.cpp:205] Loaded addon nextalk

The problem: DBus conflict caused the new Fcitx5 instance to exit:

Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?

This happens when the old Fcitx5 process doesn't terminate properly before the new one starts.

Solution - Please try this restart sequence:

# Method 1: Kill and restart
pkill -9 fcitx5
sleep 1
fcitx5 -d

# Then test Nextalk
nextalk

Or:

# Method 2: Use fcitx5-remote
fcitx5-remote -e   # Exit fcitx5
sleep 1
fcitx5 -d          # Start in daemon mode

After restarting, please run Nextalk and check if the "Fcitx5 unavailable" error is resolved.

Note: On KDE, you may need to log out and log back in for Fcitx5 to restart cleanly with all addons loaded.

gonewx avatar Jan 14 '26 06:01 gonewx

❯ sudo apt purge nextalk
【To be removed】:
  nextalk*

Summary:
  Upgrades: 0, Installs: 0, Removes: 1, Holdbacks: 4
  Space to be freed: 79.6 MB

Proceed? [Y/n]
(Reading database ... 589,648 files and directories currently installed.)
Uninstalling nextalk (0.2.8-1) ...

══════════════ ════════════════════════════════ ═════════════
  Uninstalling Nextalk...
════════════════ ═════════════════════════════════ Note: Your user data will remain in the following location:
  ~/.local/share/nextalk/

For a complete clean-up, please manually delete the aforementioned directory.

Restarting Fcitx5 to unload plugins...
  Fcitx5 restarted for user lee

Processing trigger for hicolor-icon-theme (0.18-2)...
Processing trigger for mailcap (3.74)...
Processing trigger for desktop-file-utils (0.28-1)...
❯rm  ~/.local/lib/fcitx5/libnextalk.so ~/.local/share/fcitx5/addon/nextalk.conf
rm: cannot remove “/home/lee/.local/lib/fcitx5/libnextalk.so”: No such file or directory
rm: cannot remove “/home/lee/.local/share/fcitx5/addon/nextalk.conf”: No such file or directory
❯ sudo apt install ./nextalk_0.2.8-1_amd64.deb
Note: Please select “nextalk” rather than “./nextalk_0.2.8-1_amd64.deb”
Installing:
  nextalk

Summary:
  Upgrades: 0, New installations: 1, Removals: 0, Non-upgrades: 4
  Download size: 0 B / 27.3 MB
  Required space: 79.6 MB / 19.5 GB free

Getting:1 /home/lee/Downloads/nextalk_0.2.8-1_amd64.deb nextalk amd64 0.2.8-1 [27.3 MB]
Selecting unselected package nextalk.
(Reading database ... 589606 files and directories currently installed.)
Preparing to extract .../nextalk_0.2.8-1_amd64.deb  ...
Extracting nextalk (0.2.8-1) ...
Setting up nextalk (0.2.8-1) ...

═══ ══════════════════════════════ ══ ════════════════════════
  Nextalk installation complete!
════ ══ ═══════════════════════════════ ══ ════════════════════

Restarting Fcitx5...
  Fcitx5 restarted for user lee

Running “nextalk” to launch the application
💡 Friendly reminder:
   Should you encounter any issues, please try logging in again or restarting your system.

Processing triggers for desktop-file-utils (0.28-1)...
Processing triggers for hicolor-icon-theme (0.18-2)...
Processing triggers for mailcap (3.74)...
Scanning handlers...
Scanning candidates...
Scanning processor microcode...
Scanning Linux image files...

The currently running kernel appears to be up to date.

Processor microcode appears to be up to date.

No services require restarting.

No containers require restarting.

User session executing outdated executable:
lee @ user service: plasma-kwin_wayland_service[3960]
❯ nextalk
......
[HotkeyController] 🔔 VAD endpoint: isVad=false, text="-", duration=13301ms, deviceLost=false
[HotkeyController] 📝 Final text: ‘-’
[HotkeyController] 📋 Fcitx5 unavailable, using clipboard mode
[HotkeyController] 📋 Text copied to clipboard: ‘-’

e3e0261f avatar Jan 14 '26 06:01 e3e0261f

@gonewx

❯ # Method 1: Kill and restart
  pkill -9 fcitx5
  sleep 1
  fcitx5 -d

  # Then test Nextalk
  nextalk

I2026-01-14 14:38:42.012741 instance.cpp:1394] Override Enabled Addons: {}
I2026-01-14 14:38:42.012841 instance.cpp:1395] Override Disabled Addons: {}
I2026-01-14 14:38:42.018195 xcbconnection.cpp:179] Set XFIXES client disconnect mode to TERMINATE
I2026-01-14 14:38:42.018435 xcbconnection.cpp:199] Connecting to X11 display, display name::0.
I2026-01-14 14:38:42.018487 xcbconnection.cpp:204] X11 display: :0 is xwayland.
I2026-01-14 14:38:42.018597 addonmanager.cpp:205] Loaded addon xcb
I2026-01-14 14:38:42.021538 addonmanager.cpp:205] Loaded addon wayland
I2026-01-14 14:38:42.021809 addonmanager.cpp:205] Loaded addon imselector
I2026-01-14 14:38:42.022410 addonmanager.cpp:205] Loaded addon clipboard
I2026-01-14 14:38:42.023986 addonmanager.cpp:205] Loaded addon keyman
I2026-01-14 14:38:42.024369 addonmanager.cpp:205] Loaded addon waylandim
I2026-01-14 14:38:42.024618 nextalk.cpp:37] Nextalk addon initializing (SCP-002 simplified)...
I2026-01-14 14:38:42.024707 nextalk.cpp:45] Nextalk addon initialized
I2026-01-14 14:38:42.024729 nextalk.cpp:46] Text socket: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 14:38:42.024758 addonmanager.cpp:205] Loaded addon nextalk
I2026-01-14 14:38:42.024891 nextalk.cpp:123] Socket listening at: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 14:38:42.026658 addonmanager.cpp:205] Loaded addon quickphrase
I2026-01-14 14:38:42.029078 addonmanager.cpp:205] Loaded addon m17n

I2026-01-14 14:38:42.036108 addonmanager.cpp:205] Loaded addon keyboard
I2026-01-14 14:38:42.036452 addonmanager.cpp:205] Loaded addon unicode
I2026-01-14 14:38:42.037497 addonmanager.cpp:205] Loaded addon pinyinhelper
I2026-01-14 14:38:42.038124 addonmanager.cpp:205] Loaded addon luaaddonloader
E2026-01-14 14:38:42.039357 addonloader.cpp:95] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2026-01-14 14:38:42.039393 addonmanager.cpp:201] Could not load addon dbus
I2026-01-14 14:38:42.039449 addonmanager.cpp:308] Unloading addon luaaddonloader
I2026-01-14 14:38:42.039482 addonmanager.cpp:308] Unloading addon pinyinhelper
I2026-01-14 14:38:42.039514 addonmanager.cpp:308] Unloading addon unicode
I2026-01-14 14:38:42.039547 addonmanager.cpp:308] Unloading addon keyboard
I2026-01-14 14:38:42.039733 addonmanager.cpp:308] Unloading addon m17n
I2026-01-14 14:38:42.039771 addonmanager.cpp:308] Unloading addon quickphrase
I2026-01-14 14:38:42.039930 addonmanager.cpp:308] Unloading addon nextalk
I2026-01-14 14:38:42.039961 nextalk.cpp:50] Nextalk addon shutting down...
I2026-01-14 14:38:42.040081 addonmanager.cpp:308] Unloading addon waylandim
I2026-01-14 14:38:42.040122 addonmanager.cpp:308] Unloading addon keyman
I2026-01-14 14:38:42.040153 addonmanager.cpp:308] Unloading addon clipboard
I2026-01-14 14:38:42.040196 addonmanager.cpp:308] Unloading addon imselector
I2026-01-14 14:38:42.040228 addonmanager.cpp:308] Unloading addon wayland
I2026-01-14 14:38:42.040399 addonmanager.cpp:308] Unloading addon xcb




Gdk-Message: 14:38:42.171: Unable to load  from the cursor theme



[SingleInstance] ✅ 主实例启动: /run/user/1000/nextalk.sock
[WindowService] Flutter window backend initialized
LanguageService: 使用已保存的语言: zh
method call InitSystemTray

(com.gonewx.nextalk:72688): libayatana-appindicator-WARNING **: 14:38:42.287: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
SystemTray::set_system_tray_info title: , icon_path: /opt/nextalk/data/flutter_assets/assets/icons/tray_icon.png, toolTip: Nextalk
[TrayService._buildMenu] actualEngine=EngineType.sensevoice, modelType=ModelType.standard
[TrayService._buildMenu] zipInt8=false, zipStd=false, sense=true
[AudioDeviceService] 📋 开始枚举音频设备...
[AudioDeviceService] 🔍 尝试 libpulse 枚举...

[AudioDeviceService] 📋 libpulse 发现 8 个 source:
[AudioDeviceService]   - "alsa_output.pci-0000_00_1b.0.pro-output-0.monitor" (monitor,跳过)
[AudioDeviceService]   - "alsa_output.pci-0000_00_1b.0.pro-output-1.monitor" (monitor,跳过)
[AudioDeviceService]   ✓ "alsa_input.pci-0000_00_1b.0.pro-input-0" -> "Built-in Audio Pro"
[AudioDeviceService]   ✓ "alsa_input.pci-0000_00_1b.0.pro-input-2" -> "Built-in Audio Pro 2"
[AudioDeviceService]   - "alsa_output.usb-Yamaha_Corporation_Steinberg_CI1-01.pro-output-0.monitor" (monitor,跳过)
[AudioDeviceService]   ✓ "alsa_input.usb-Yamaha_Corporation_Steinberg_CI1-01.pro-input-0" -> "Steinberg CI1 Pro"
[AudioDeviceService]   - "easyeffects_sink.monitor" (monitor,跳过)
[AudioDeviceService]   ✓ "easyeffects_source" -> "Easy Effects Source"
[AudioDeviceService] ✓ 使用 libpulse 枚举 (4 个设备)
method call CreateContextMenu
value_to_menu_item type:label, label:Nextalk
value_to_menu_item type:label, label:显示 / 隐藏
value_to_menu_item type:label, label:重新连接 Fcitx5
value_to_menu_item type:submenu, label:模型设置
value_to_menu_item type:submenu, label:Zipformer (流式)
value_to_menu_item type:label, label:int8 模型 (更快)
value_to_menu_item type:label, label:标准模型 (更准)
value_to_menu_item type:label, label:● SenseVoice (离线)
value_to_menu_item type:submenu, label:语言 / Language
value_to_menu_item type:label, label:● 简体中文
value_to_menu_item type:label, label:English
value_to_menu_item type:submenu, label:音频输入设备
value_to_menu_item type:label, label:系统默认
value_to_menu_item type:label, label:Built-in Audio Pro
value_to_menu_item type:label, label:Built-in Audio Pro 2
value_to_menu_item type:label, label:Steinberg CI1 Pro
value_to_menu_item type:label, label:● Easy Effects Source
value_to_menu_item type:label, label:设置
value_to_menu_item type:label, label:退出
method call SetContextMenu
[HotkeyService] 从配置文件加载快捷键: altRight + []
[HotkeyService] ✅ 配置加载完成: Right Alt
[AudioCapture] 开始预热音频设备...
[AudioCapture] 📋 配置的设备: Easy Effects Source
[AudioDeviceService] 📋 使用缓存设备列表 (4 个设备)
[AudioCapture] 📋 解析为 libpulse name: easyeffects_source
[AudioCapture] 🔍 尝试使用 libpulse-simple...
[PulseAudioCapture] 📋 初始化 libpulse-simple...
[PulseAudioCapture] 📋 连接设备: easyeffects_source


[PulseAudioCapture] ✓ 初始化成功
[AudioCapture] ✅ 使用 libpulse-simple 预热成功
[EngineInitializer] 尝试初始化配置的引擎: EngineType.sensevoice
[EngineInitializer] ✓ 配置的引擎初始化成功: EngineType.sensevoice
SettingsService: 实际引擎类型已设置为 EngineType.sensevoice
[SherpaFFI] ✅ 库加载成功: /opt/nextalk/lib/libsherpa-onnx-c-api.so
[HotkeyController] ✅ 控制器初始化完成
[SingleInstance] 收到连接
[SingleInstance] 收到命令: toggle
[HotkeyController] 快捷键按下,当前状态: HotkeyState.idle
[PulseAudioCapture] ▶️ 开始录音
[HotkeyController] 🎤 开始录音
[HotkeyController] 🔔 VAD 端点: isVad=true, text="ただたたたたた。", duration=10681ms, deviceLost=false
[SingleInstance] 收到连接
[SingleInstance] 收到命令: toggle
[HotkeyController] 快捷键按下,当前状态: HotkeyState.recording
[PulseAudioCapture] ⏹️ 停止录音
[HotkeyController] 🔔 VAD 端点: isVad=false, text="ただたたたたた。", duration=12292ms, deviceLost=false
[HotkeyController] 📝 最终文本: "ただたたたたた。"
[HotkeyController] 📋 Fcitx5 不可用,使用剪贴板模式
[HotkeyController] 📋 文本已复制到剪贴板: "ただたたたたた。"
[HotkeyController] 📝 Final text: “ただたたたたた。”
[HotkeyController] 📋 Fcitx5 unavailable, using clipboard mode
[HotkeyController] 📋 Text copied to clipboard: “ただたたたたた。”

After manually restarting fcitx5, it actually worked again.

[HotkeyController] 📝 Final text: “Hello, hello.”
[HotkeyController] ✅ Text submitted
Hello, hello.

e3e0261f avatar Jan 14 '26 06:01 e3e0261f

The audio issue from Issue #1 is now fixed! The app successfully connects to Easy Effects Source.

However, the Fcitx5 socket connection is still failing. Let's diagnose this.

Please run these commands:

# 1. Check if Fcitx5 is running and Nextalk addon is loaded
pgrep -a fcitx5
fcitx5-diagnose 2>&1 | grep -i nextalk

# 2. Check if the socket file exists
ls -la /run/user/$(id -u)/nextalk-fcitx5.sock

# 3. Check Fcitx5 logs for Nextalk
journalctl --user -u fcitx5 --since "10 minutes ago" 2>/dev/null | grep -i nextalk

# 4. If journalctl doesn't work, try this
ps aux | grep fcitx5

Important: Did you restart Fcitx5 properly after installing the DEB package?

Please try:

pkill -9 fcitx5
sleep 2
fcitx5 -d
sleep 2
ls -la /run/user/$(id -u)/nextalk-fcitx5.sock

The socket file /run/user/1000/nextalk-fcitx5.sock should exist if the Nextalk addon is properly loaded.

gonewx avatar Jan 14 '26 06:01 gonewx

❯ ls -la /run/user/$(id -u)/nextalk-fcitx5.sock
"/run/user/1000/nextalk-fcitx5.sock": No such file or directory (os error 2)
❯ ls /run/user/1000/nextalk.sock
/run/user/1000/nextalk.sock

I also restarted yesterday, but ever since installing Nextalk, Fcitx5 support hasn't been functioning properly. It only just started working again.

After restarting Nextalk once, it was copied to the clipboard again.

e3e0261f avatar Jan 14 '26 06:01 e3e0261f

I found the issue! There are two different socket files:

Socket Purpose Created by
nextalk.sock Single instance detection Flutter app
nextalk-fcitx5.sock Text submission to Fcitx5 Fcitx5 Nextalk plugin

The nextalk-fcitx5.sock is missing, which means the Fcitx5 Nextalk addon is not running.

Please run these diagnostic commands:

# 1. Check if Nextalk addon is loaded in Fcitx5
fcitx5-diagnose 2>&1 | grep -i "nextalk"

# 2. Check Fcitx5 addon loading
fcitx5 --list-addons 2>&1 | grep -i nextalk

# 3. Kill Fcitx5 completely and restart
pkill -9 fcitx5
sleep 2
fcitx5 -d
sleep 2

# 4. Now check if the socket was created
ls -la /run/user/$(id -u)/nextalk*.sock

# 5. Check addon status again
fcitx5-diagnose 2>&1 | grep -i "nextalk"

After running these commands, please share the output. We need to understand why the Nextalk addon is not loading or creating its socket.

Key question: When you said "manually restarting fcitx5 worked", did you run pkill -9 fcitx5 && fcitx5 -d or something else? What exact command did you use?

gonewx avatar Jan 14 '26 07:01 gonewx

Image

  • The system interface I use switches to Fcitx5.
  • After the connection between Nextalk and Fcitx5 failed, I restarted Fcitx5. Nextalk then resumed functioning normally. However, after restarting Nextalk again, the connection failed once more.
lee@DEGNU:~$ # 1. Check if Nextalk addon is loaded in Fcitx5
fcitx5-diagnose 2>&1 | grep -i "nextalk"

# 2. Check Fcitx5 addon loading
fcitx5 --list-addons 2>&1 | grep -i nextalk

# 3. Kill Fcitx5 completely and restart
pkill -9 fcitx5
sleep 2
fcitx5 -d
sleep 2

# 4. Now check if the socket was created
ls -la /run/user/$(id -u)/nextalk*.sock

# 5. Check addon status again
fcitx5-diagnose 2>&1 | grep -i "nextalk"

            Nextalk 0.3.0
I2026-01-14 15:04:46.039914 instance.cpp:1394] Override Enabled Addons: {}
I2026-01-14 15:04:46.040005 instance.cpp:1395] Override Disabled Addons: {}
I2026-01-14 15:04:46.045745 xcbconnection.cpp:179] Set XFIXES client disconnect mode to TERMINATE
I2026-01-14 15:04:46.046188 xcbconnection.cpp:199] Connecting to X11 display, display name::0.
I2026-01-14 15:04:46.046249 xcbconnection.cpp:204] X11 display: :0 is xwayland.
I2026-01-14 15:04:46.046360 addonmanager.cpp:205] Loaded addon xcb
I2026-01-14 15:04:46.049362 addonmanager.cpp:205] Loaded addon wayland
I2026-01-14 15:04:46.049619 addonmanager.cpp:205] Loaded addon imselector
I2026-01-14 15:04:46.050293 addonmanager.cpp:205] Loaded addon clipboard
I2026-01-14 15:04:46.051915 addonmanager.cpp:205] Loaded addon keyman
I2026-01-14 15:04:46.052300 addonmanager.cpp:205] Loaded addon waylandim
I2026-01-14 15:04:46.052545 nextalk.cpp:37] Nextalk addon initializing (SCP-002 simplified)...
I2026-01-14 15:04:46.052638 nextalk.cpp:45] Nextalk addon initialized
I2026-01-14 15:04:46.052669 nextalk.cpp:46] Text socket: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 15:04:46.052693 addonmanager.cpp:205] Loaded addon nextalk
I2026-01-14 15:04:46.052736 nextalk.cpp:123] Socket listening at: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 15:04:46.054497 addonmanager.cpp:205] Loaded addon quickphrase
I2026-01-14 15:04:46.056880 addonmanager.cpp:205] Loaded addon m17n
I2026-01-14 15:04:46.063626 addonmanager.cpp:205] Loaded addon keyboard
I2026-01-14 15:04:46.063912 addonmanager.cpp:205] Loaded addon unicode
I2026-01-14 15:04:46.064929 addonmanager.cpp:205] Loaded addon pinyinhelper
I2026-01-14 15:04:46.065599 addonmanager.cpp:205] Loaded addon luaaddonloader
E2026-01-14 15:04:46.066963 addonloader.cpp:95] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2026-01-14 15:04:46.067012 addonmanager.cpp:201] Could not load addon dbus
I2026-01-14 15:04:46.067071 addonmanager.cpp:308] Unloading addon luaaddonloader
I2026-01-14 15:04:46.067113 addonmanager.cpp:308] Unloading addon pinyinhelper
I2026-01-14 15:04:46.067159 addonmanager.cpp:308] Unloading addon unicode
I2026-01-14 15:04:46.067202 addonmanager.cpp:308] Unloading addon keyboard
I2026-01-14 15:04:46.067364 addonmanager.cpp:308] Unloading addon m17n
I2026-01-14 15:04:46.067405 addonmanager.cpp:308] Unloading addon quickphrase
I2026-01-14 15:04:46.067569 addonmanager.cpp:308] Unloading addon nextalk
I2026-01-14 15:04:46.067606 nextalk.cpp:50] Nextalk addon shutting down...
I2026-01-14 15:04:46.067725 addonmanager.cpp:308] Unloading addon waylandim
I2026-01-14 15:04:46.067783 addonmanager.cpp:308] Unloading addon keyman
I2026-01-14 15:04:46.067831 addonmanager.cpp:308] Unloading addon clipboard
I2026-01-14 15:04:46.067894 addonmanager.cpp:308] Unloading addon imselector
I2026-01-14 15:04:46.067933 addonmanager.cpp:308] Unloading addon wayland
I2026-01-14 15:04:46.068125 addonmanager.cpp:308] Unloading addon xcb
srwxrwxr-x 1 lee lee 0  1月14日 14:59 /run/user/1000/nextalk.sock
            Nextalk 0.3.0

e3e0261f avatar Jan 14 '26 07:01 e3e0261f

The problem is clear now! The old Fcitx5 process is not being killed properly.

The logs show:

  1. Nextalk addon loads successfully and creates the socket
  2. But then DBus fails because another Fcitx5 is still running
  3. The new Fcitx5 instance exits, taking the Nextalk socket with it

Please try this:

# 1. Check how many fcitx5 processes are running
pgrep -a fcitx5

# 2. Check if Fcitx5 is managed by systemd
systemctl --user status fcitx5

# 3. If systemd manages it, stop and restart properly
systemctl --user stop fcitx5
sleep 2
systemctl --user start fcitx5

# 4. If not managed by systemd, force kill ALL fcitx processes
pkill -9 -f fcitx
sleep 2
pgrep -a fcitx  # Should show nothing
fcitx5 -d
sleep 2

# 5. Verify socket exists
ls -la /run/user/$(id -u)/nextalk*.sock

Important question: When you "restart Nextalk", what exactly do you do?

  • Do you just close and reopen the Nextalk app?
  • Or do you run some command?

On KDE, Fcitx5 might be auto-started by the desktop environment. When you restart Nextalk, does it somehow trigger Fcitx5 to restart as well?

gonewx avatar Jan 14 '26 07:01 gonewx

Actually, the simplest and most effective way to verify the fix is to reboot your computer.

After reboot:

  1. KDE will cleanly start Fcitx5 with all addons loaded (including Nextalk)
  2. No DBus conflicts or orphan processes
  3. The nextalk-fcitx5.sock should be created automatically

Please reboot and then run Nextalk to test if the Fcitx5 connection works properly.

If it still doesn't work after reboot, please share the output of:

ls -la /run/user/$(id -u)/nextalk*.sock
fcitx5-diagnose 2>&1 | grep -i nextalk

gonewx avatar Jan 14 '26 07:01 gonewx

I simply pressed Ctrl+C in the terminal and restarted Nextalk.

lee@DEGNU:~$ # 1. Check how many fcitx5 processes are running
pgrep -a fcitx5

# 2. Check if Fcitx5 is managed by systemd
systemctl --user status fcitx5

# 3. If systemd manages it, stop and restart properly
systemctl --user stop fcitx5
sleep 2
systemctl --user start fcitx5

# 4. If not managed by systemd, force kill ALL fcitx processes
pkill -9 -f fcitx
sleep 2
pgrep -a fcitx  # Should show nothing
fcitx5 -d
sleep 2

# 5. Verify socket exists
ls -la /run/user/$(id -u)/nextalk*.sock
89132 /usr/bin/fcitx5
Unit fcitx5.service could not be found.
Failed to stop fcitx5.service: Unit fcitx5.service not loaded.
Failed to start fcitx5.service: Unit fcitx5.service not found.
91981 /usr/bin/fcitx5
I2026-01-14 15:10:05.520436 instance.cpp:1394] Override Enabled Addons: {}
I2026-01-14 15:10:05.520525 instance.cpp:1395] Override Disabled Addons: {}
I2026-01-14 15:10:05.526265 xcbconnection.cpp:179] Set XFIXES client disconnect mode to TERMINATE
I2026-01-14 15:10:05.526680 xcbconnection.cpp:199] Connecting to X11 display, display name::0.
I2026-01-14 15:10:05.526747 xcbconnection.cpp:204] X11 display: :0 is xwayland.
I2026-01-14 15:10:05.526859 addonmanager.cpp:205] Loaded addon xcb
I2026-01-14 15:10:05.529911 addonmanager.cpp:205] Loaded addon wayland
I2026-01-14 15:10:05.530189 addonmanager.cpp:205] Loaded addon imselector
I2026-01-14 15:10:05.530855 addonmanager.cpp:205] Loaded addon clipboard
I2026-01-14 15:10:05.532431 addonmanager.cpp:205] Loaded addon keyman
I2026-01-14 15:10:05.532814 addonmanager.cpp:205] Loaded addon waylandim
I2026-01-14 15:10:05.533044 nextalk.cpp:37] Nextalk addon initializing (SCP-002 simplified)...
I2026-01-14 15:10:05.533139 nextalk.cpp:45] Nextalk addon initialized
I2026-01-14 15:10:05.533167 nextalk.cpp:46] Text socket: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 15:10:05.533197 addonmanager.cpp:205] Loaded addon nextalk
I2026-01-14 15:10:05.533319 nextalk.cpp:123] Socket listening at: /run/user/1000/nextalk-fcitx5.sock
I2026-01-14 15:10:05.535156 addonmanager.cpp:205] Loaded addon quickphrase
I2026-01-14 15:10:05.537545 addonmanager.cpp:205] Loaded addon m17n
I2026-01-14 15:10:05.543875 addonmanager.cpp:205] Loaded addon keyboard
I2026-01-14 15:10:05.544121 addonmanager.cpp:205] Loaded addon unicode
I2026-01-14 15:10:05.544960 addonmanager.cpp:205] Loaded addon pinyinhelper
I2026-01-14 15:10:05.545551 addonmanager.cpp:205] Loaded addon luaaddonloader
E2026-01-14 15:10:05.547328 addonloader.cpp:95] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
I2026-01-14 15:10:05.547379 addonmanager.cpp:201] Could not load addon dbus
I2026-01-14 15:10:05.547424 addonmanager.cpp:308] Unloading addon luaaddonloader
I2026-01-14 15:10:05.547454 addonmanager.cpp:308] Unloading addon pinyinhelper
I2026-01-14 15:10:05.547487 addonmanager.cpp:308] Unloading addon unicode
I2026-01-14 15:10:05.547518 addonmanager.cpp:308] Unloading addon keyboard
I2026-01-14 15:10:05.547657 addonmanager.cpp:308] Unloading addon m17n
I2026-01-14 15:10:05.547692 addonmanager.cpp:308] Unloading addon quickphrase
I2026-01-14 15:10:05.547888 addonmanager.cpp:308] Unloading addon nextalk
I2026-01-14 15:10:05.547913 nextalk.cpp:50] Nextalk addon shutting down...
I2026-01-14 15:10:05.548046 addonmanager.cpp:308] Unloading addon waylandim
I2026-01-14 15:10:05.548086 addonmanager.cpp:308] Unloading addon keyman
I2026-01-14 15:10:05.548116 addonmanager.cpp:308] Unloading addon clipboard
I2026-01-14 15:10:05.548157 addonmanager.cpp:308] Unloading addon imselector
I2026-01-14 15:10:05.548187 addonmanager.cpp:308] Unloading addon wayland
I2026-01-14 15:10:05.548337 addonmanager.cpp:308] Unloading addon xcb
srwxrwxr-x 1 lee lee 0  1月14日 15:06 /run/user/1000/nextalk.sock

@gonewx The problem remains unchanged.

[HotkeyController] 📋 Fcitx5 unavailable, using clipboard mode
[HotkeyController] 📋 Text copied to clipboard: ‘Hello, hello, hello.’

After restarting, I immediately opened Nextalk,

[HotkeyController] 📋 Fcitx5 unavailable; using clipboard mode

❯ ls -la /run/user/$(id -u)/nextalk*.sock
  fcitx5-diagnose 2>&1 | grep -i nextalk
srwxrwxr-x - lee 14 1月  15:19 /run/user/1000/nextalk.sock
          IC [b7c8ce5b9a3140fd8de1699f792c8020] program:nextalk frontend:fcitx4 cap:1000012 focus:0
            Nextalk 0.3.0

e3e0261f avatar Jan 14 '26 07:01 e3e0261f

Upon first launching Nextalk after system login, the connection with Fcitx5 will inevitably fail. After restarting Fcitx5 once, Nextalk will successfully connect to Fcitx5 for a short period, though this connection is not permanent.

e3e0261f avatar Jan 14 '26 07:01 e3e0261f

Thank you for the detailed debugging! Now I understand the issue completely.

Root Cause Analysis:

This is a KDE desktop environment issue, not a DEB package problem:

  1. When you login, KDE auto-starts Fcitx5
  2. The first Fcitx5 instance fails due to DBus conflict (possibly KDE starts multiple instances)
  3. When Fcitx5 fails, the Nextalk plugin's socket is deleted during cleanup
  4. When you open Nextalk app, the socket doesn't exist → clipboard mode
  5. After manually restarting Fcitx5, DBus conflict is resolved → works fine

Temporary Workaround:

Since the DEB installation is correct (works after manual Fcitx5 restart), you can:

Option 1: Use the tray menu "Reconnect Fcitx5" button after login

Option 2: Add a startup delay script

# Create ~/.config/autostart/nextalk-fcitx-fix.desktop
[Desktop Entry]
Type=Application
Name=Nextalk Fcitx5 Fix
Exec=bash -c "sleep 5 && fcitx5 -r"
X-GNOME-Autostart-enabled=true

Option 3: Disable KDE's auto-start for Fcitx5 and manually start it

Long-term Fix:

We can investigate adding a startup retry mechanism in Nextalk to wait for the Fcitx5 socket. But this is a KDE/Fcitx5 interaction issue that should ideally be fixed upstream.

Is the "Reconnect Fcitx5" tray menu option working for you as a workaround?

gonewx avatar Jan 14 '26 07:01 gonewx

Reconnecting Fcitx5 does not resolve the issue, but it can be used to determine whether a connection can currently be established successfully.

It will display a success or failure prompt in the terminal: TrayService: Fcitx5 reconnection successful

e3e0261f avatar Jan 14 '26 07:01 e3e0261f

I see. The current "Reconnect Fcitx5" button only tries to reconnect to the socket. If the socket doesn't exist, it will fail.

For now, the workaround is:

After login, run this command once in terminal:

fcitx5 -r

Then Nextalk should work.

Future improvement:

We can enhance the "Reconnect Fcitx5" button to:

  1. Check if socket exists
  2. If not, try to restart Fcitx5 automatically (fcitx5 -r)
  3. Then reconnect

I'll add this to our roadmap for a future release.

Summary:

  • The DEB package installation is correct ✓
  • The issue is KDE's Fcitx5 startup conflict (DBus issue)
  • Workaround: Run fcitx5 -r after login, or use Option 2 (autostart script) from my previous comment

Thank you for your patience in helping us debug this issue!

gonewx avatar Jan 14 '26 08:01 gonewx

@gonewx

  • In Debian 13 with KDE Plasma 6, running fcitx5 -r does not resolve the issue.
  • However, there is currently no alternative solution available other than manually closing and reopening fcitx5. This is the only option for now. I shall provide feedback once I discover a new script-based method.
  • Thank you for your thorough investigation and keen interest.

e3e0261f avatar Jan 14 '26 09:01 e3e0261f

@e3e0261f

Thank you for the feedback!

If fcitx5 -r doesn't work on KDE Plasma 6, you can try this command which completely restarts Fcitx5:

pkill fcitx5; sleep 1; fcitx5 -d

Or create an alias in your ~/.bashrc:

alias fix-fcitx='pkill fcitx5; sleep 1; fcitx5 -d'

Then just run fix-fcitx after login.

Thank you for your patience and detailed testing! Your feedback has been very helpful in understanding the KDE Plasma 6 + Fcitx5 interaction. If you find a better solution, please share it here.

gonewx avatar Jan 14 '26 23:01 gonewx