chatbox icon indicating copy to clipboard operation
chatbox copied to clipboard

[Feature] Native wayland support

Open stanzgy opened this issue 1 year ago • 3 comments

Problem Description Chatbox cannot run in native Wayland mode. Other electron apps like vscode can run native Wayland without major issues with flags configured below

--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto

My setup

OS: Arch Linux
GPU: AMD 5700G
Kernel: 6.6.60-1-lts
WM: Hyprland 0.45.0-1
Chatbox: 1.6.1-1 (via https://aur.archlinux.org/packages/chatbox-appimage) 

Proposed Solution Maybe upgrade to newer version (>=28) of electron could solve this issue?

According to Arch Wiki, electron with version >=28 can honor env variable ELECTRON_OZONE_PLATFORM_HINT with native wayland support.

Additional Context Run Chatbox from command line:

$ /opt/Chatbox/Chatbox-1.6.1-x86_64.AppImage --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=wayland --enable-logging --log-file=electron.txt
17:31:27.261 › store-node: init store, config path: /home/stanzgy/.config/xyz.chatboxapp.app/config.json
[3689762:1129/173127.477734:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is
[3689762:1129/173127.486480:WARNING:sandbox_linux.cc(380)] InitializeSandbox() called with multiple threads in process gpu-process.

fallback to x11

$ xlsclients -al
Window 0xe00001:
  Machine:  aaa
  Name:  xyz.chatboxapp.app
  Icon Name:  xyz.chatboxapp.app
  Command:  xyz.chatboxapp.app
  Instance/Class:  xyz.chatboxapp.app/Xyz.chatboxapp.app

electron log:

[3689696:1129/173127.334560:WARNING:wayland_object.cc(144)] Binding to wl_seat version 5 but version 9 is available.
[3689696:1129/173127.334666:WARNING:wayland_object.cc(144)] Binding to zwp_pointer_gestures_v1 version 1 but version 3is available.
[3689696:1129/173127.335711:WARNING:wayland_object.cc(144)] Binding to zwp_linux_dmabuf_v1 version 3 but version 5 is available.
[3689696:1129/173127.501742:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.

stanzgy avatar Nov 29 '24 09:11 stanzgy

Got the same issue on Manjaro with v1.9.8

FHU-yezi avatar Feb 11 '25 06:02 FHU-yezi

Got the same issue on Manjaro with v1.9.8

It works on Arch with v1.9.8.

/opt/Chatbox/Chatbox-1.9.8-x86_64.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime

Liksium avatar Feb 14 '25 03:02 Liksium

Got the same issue on Manjaro with v1.9.8

It works on Arch with v1.9.8.

/opt/Chatbox/Chatbox-1.9.8-x86_64.AppImage --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime

More simple solution:

--ozone-platform-hint=wayland --enable-wayland-ime

FHU-yezi avatar Feb 14 '25 10:02 FHU-yezi

Got a similar log on Debian with v1.17.1.

flyingicedragon avatar Nov 19 '25 08:11 flyingicedragon