qoder 在ubuntu26 中打不开,qoder ide 和qoder cli可以运行

zhanyunfei@zhanyunfei-Ubuntu:~$ ls -lt ~/.qoder/logs/ 2>/dev/null | head -n 5
total 404
lrwxrwxrwx 1 zhanyunfei zhanyunfei 50 Oct 12 17:56 latest → runs/2026-10-12T17-56-18-101+08-00-ezt81t-p2452345
drwxrwxr-x 365 zhanyunfei zhanyunfei 401408 Oct 12 17:56 runs
drwxrwxr-x 3 zhanyunfei zhanyunfei 4096 Oct 12 17:44 sessions
-rw------- 1 zhanyunfei zhanyunfei 773 Oct 12 17:44 qoder-context-hook.log
zhanyunfei@zhanyunfei-Ubuntu:~$ cd ~/.qoder/logs/latest
ls -la
total 408
drwxrwxr-x 2 zhanyunfei zhanyunfei 4096 Oct 12 17:56 .
drwxrwxr-x 365 zhanyunfei zhanyunfei 401408 Oct 12 17:56 ..
-rw-rw-r-- 1 zhanyunfei zhanyunfei 568 Oct 12 17:56 manifest.json
-rw-rw-r-- 1 zhanyunfei zhanyunfei 3408 Oct 12 17:56 qodercli.log
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ ls -la /opt/Qoder/
file /home/zhanyunfei/.qoder/entry/qoder
cat /home/zhanyunfei/.qoder/entry/qoder
total 271384
drwxr-xr-x 4 root root 4096 Oct 10 15:22 .
drwxr-xr-x 24 root root 4096 Oct 9 15:51 ..
-rw-r–r-- 1 root root 1096 Oct 9 17:19 LICENSE.electron.txt
-rw-r–r-- 1 root root 19956019 Oct 9 17:19 LICENSES.chromium.html
-rwxr-xr-x 1 root root 15232 Oct 9 17:19 chrome-sandbox
-rw-r–r-- 1 root root 120300 Oct 9 17:19 chrome_100_percent.pak
-rw-r–r-- 1 root root 198617 Oct 9 17:19 chrome_200_percent.pak
-rwxr-xr-x 1 root root 1853008 Oct 9 17:19 chrome_crashpad_handler
-rw-r–r-- 1 root root 10876560 Oct 9 17:19 icudtl.dat
-rwxr-xr-x 1 root root 259592 Oct 9 17:19 libEGL.so
-rwxr-xr-x 1 root root 6444304 Oct 9 17:19 libGLESv2.so
-rwxr-xr-x 1 root root 2731256 Oct 9 17:19 libffmpeg.so
-rwxr-xr-x 1 root root 4652216 Oct 9 17:19 libvk_swiftshader.so
-rwxr-xr-x 1 root root 2482968 Oct 9 17:19 libvulkan.so.1
drwxr-xr-x 2 root root 4096 Oct 10 15:22 locales
-rwxr-xr-x 1 root root 219806968 Oct 9 17:19 qoder
drwxr-xr-x 10 root root 4096 Oct 10 15:22 resources
-rw-r–r-- 1 root root 7333505 Oct 9 17:19 resources.pak
-rw-r–r-- 1 root root 365488 Oct 9 17:19 snapshot_blob.bin
-rw-r–r-- 1 root root 740048 Oct 9 17:19 v8_context_snapshot.bin
-rw-r–r-- 1 root root 107 Oct 9 17:19 vk_swiftshader_icd.json
/home/zhanyunfei/.qoder/entry/qoder: Bourne-Again shell script, ASCII text executable
#!/usr/bin/env bash

Qoder Command Dispatcher

Routes qoder ... to either Qoder CLI or Qoder IDE.

set -e

_find_cli() {
cli=“$(type -P qodercli 2>/dev/null || true)”
if [ -n “$cli” ]; then
echo “$cli”
return 0
fi
for c in “$HOME/.local/bin/qodercli” “$HOME/.qoder/bin/qodercli/qodercli”; do
[ -x “$c” ] && echo “$c” && return 0
done
return 1
}

_print_ide_launcher() {
candidate=“$1”
[ -f “$candidate” ] || return 1
[ -x “$candidate” ] || return 1
echo “$candidate”
}

_print_macos_ide_launcher() {
app=“$1”
candidate=“$app/Contents/Resources/app/bin/code”
[ -f “$candidate” ] || return 1
[ -x “$candidate” ] || return 1

bundle_id=“$(/usr/bin/plutil -extract CFBundleIdentifier raw -o - “$app/Contents/Info.plist” 2>/dev/null)” || return 1
[ “$bundle_id” = “com.qoder.ide” ] || return 1
echo “$candidate”
}

_find_macos_ide_by_bundle_id() {
[ -x /usr/bin/mdfind ] || return 1

Spotlight is a fallback for renamed app bundles. Restrict discovery to

supported installation roots and impose our own stable ordering instead

of relying on mdfind’s unspecified result order.

for root in “$HOME/Applications” “/Applications”; do
[ -d “$root” ] || continue
while IFS= read -r app; do
[ -n “$app” ] || continue
_print_macos_ide_launcher “$app” && return 0
done < <(
/usr/bin/mdfind -onlyin “$root”
“kMDItemCFBundleIdentifier == ‘com.qoder.ide’”
2>/dev/null | LC_ALL=C /usr/bin/sort
)
done
return 1
}

_find_remote_ide() {

VS Code-compatible remote terminals bind the injected remote CLI to the

active IDE session through this IPC handle. Requiring both the handle and

a PATH entry owned by remote-cli keeps ordinary local terminals on the

existing fixed-path discovery flow.

[ -n “${VSCODE_IPC_HOOK_CLI:-}” ] || return 1

for name in “qoder” “qoder”; do
while IFS= read -r candidate; do
case “$candidate” in
*/remote-cli/“$name”)
_print_ide_launcher “$candidate” && return 0
;;
esac
done < <(type -aP “$name” 2>/dev/null || true)
done
return 1
}

_find_ide() {

A remote launcher is session-scoped, so it must win over any machine-local

IDE installation when the command is issued from a remote IDE terminal.

_find_remote_ide && return 0

case “$(uname -s)” in
Darwin)

A per-user installation overrides the system-wide installation.

Within each scope, prefer the renamed IDE while retaining the

pre-rename package path. Bundle identity prevents the reused Qoder.app

name from selecting the separate new Qoder product.

for root in “$HOME/Applications” “/Applications”; do
_print_macos_ide_launcher “$root/Qoder IDE.app” && return 0
_print_macos_ide_launcher “$root/Qoder.app” && return 0
done
_find_macos_ide_by_bundle_id && return 0
;;
Linux)

Prefer the renamed IDE package root. Keep the previous package root as

a migration fallback so independently upgraded CLI and IDE installs

remain interoperable.

_print_ide_launcher “/usr/share/qoder-ide/bin/code” && return 0
_print_ide_launcher “/usr/share/qoder-ide/bin/qoder” && return 0
_print_ide_launcher “/usr/share/qoder/bin/code” && return 0
_print_ide_launcher “/usr/share/qoder/bin/qoder” && return 0
;;
esac
return 1
}

_run_cli() {
cli=“$(_find_cli)” || {
echo “Qoder CLI is not installed. Install: https://qoder.com” >&2
echo “Tip: `qoder ide` is available if the IDE is installed.” >&2
exit 127
}
exec “$cli” “$@”
}

_run_ide() {
ide=“$(_find_ide)” || {
echo “Qoder IDE is not installed. Download: https://qoder.com” >&2
echo “Tip: `qoder` (CLI) is still available - run `qoder --help`.” >&2
exit 127
}
exec “$ide” “$@”
}

if [ $# -eq 0 ]; then
_run_cli
fi

first=“$1”
case “$first” in
ide)
shift
_run_ide “$@”
;;
chat|serve-web|tunnel)
_run_ide “$@”
;;
-*)
_run_cli “$@”
;;
*)
if [ -e “$first” ]; then
_run_ide “$@”
else
_run_cli “$@”
fi
;;
esac
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ /opt/Qoder/qoder --enable-logging 2>&1 | tee /tmp/qoder-direct.log
[2483745:1012/175826.564524:WARNING:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:111] Preferred drm_render_node not found, picking nvidia-drm
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ QT_QPA_PLATFORM=wayland /opt/Qoder/qoder --ozone-platform-hint=wayland --enable-logging 2>&1 | tee /tmp/qoder-wayland.log
[2487203:1012/175834.936988:WARNING:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:111] Preferred drm_render_node not found, picking nvidia-drm
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ QT_QPA_PLATFORM=wayland /opt/Qoder/qoder --ozone-platform-hint=wayland --enable-logging
[2496336:1012/175921.777596:WARNING:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:111] Preferred drm_render_node not found, picking nvidia-drm
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ /opt/Qoder/qoder --disable-features=Vulkan --enable-logging
[2504580:1012/180002.863958:WARNING:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:111] Preferred drm_render_node not found, picking nvidia-drm
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ QT_QPA_PLATFORM=xcb /opt/Qoder/qoder --disable-gpu --use-gl=swiftshader --enable-logging
[2506659:1012/180009.231030:WARNING:ui/ozone/platform/wayland/common/drm_render_node_path_finder.cc:111] Preferred drm_render_node not found, picking nvidia-drm
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ export XDG_SESSION_TYPE=x11
/opt/Qoder/qoder --enable-logging
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ /opt/Qoder/qoder --in-process-gpu --enable-logging
[App] Linux Wayland 会话回退 Ozone 平台:x11(重新拉起进程)
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ sysctl kernel.apparmor_restrict_unprivileged_userns
kernel.apparmor_restrict_unprivileged_userns = 0
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 26.04 LTS
Release: 26.04
Codename: resolute
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$ nvidia-smi
Mon Oct 12 18:00:47 2026
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.173.02 Driver Version: 580.173.02 CUDA Version: 13.0 |
±----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce GTX 1060 3GB Off | 00000000:01:00.0 On | N/A |
| 29% 46C P0 27W / 120W | 1480MiB / 3072MiB | 1% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 14862 G /usr/bin/gnome-shell 458MiB |
| 0 N/A N/A 15241 C+G /usr/bin/gnome-software 28MiB |
| 0 N/A N/A 15282 G /usr/bin/clash-verge 1MiB |
| 0 N/A N/A 15295 G …anyunfei/Applications/Steam++ 3MiB |
| 0 N/A N/A 15567 C+G …exec/xdg-desktop-portal-gnome 3MiB |
| 0 N/A N/A 16617 G /usr/bin/Xwayland 62MiB |
| 0 N/A N/A 18554 G …bin/snapd-desktop-integration 6MiB |
| 0 N/A N/A 979064 G …rack-uuid=3190708988185955192 218MiB |
| 0 N/A N/A 1373834 C+G /usr/bin/nautilus 84MiB |
| 0 N/A N/A 1472158 C+G …rack-uuid=3190708988185955192 163MiB |
| 0 N/A N/A 4141480 C+G …rack-uuid=3190708988185955192 74MiB |
±----------------------------------------------------------------------------------------+
zhanyunfei@zhanyunfei-Ubuntu:~/.qoder/logs/latest$