Skip to content

"Failed to open IBUS address file" on Wayland using forced X11 mode #5967

Closed
@notpeelz

Description

@notpeelz

Describe the bug
Under GNOME (Wayland), but kitty running in forced X11 mode, kitty fails to locate the ibus address file.

To Reproduce
Steps to reproduce the behavior:

  1. On GNOME 43 (wayland), install ibus
  2. Add linux_display_server x11 to your kitty.conf
  3. Run GLFW_IM_MODULE=ibus kitty
  4. See error: [glfw error 65544]: Failed to open IBUS address file: /home/peelz/.config/ibus/bus/4f3998ea7a9f475ba39f34f9429ce700-unix-0 with error: No such file or directory

It tries to look for this file, which doesn't exist: ~/.config/ibus/bus/4f3998ea7a9f475ba39f34f9429ce700-unix-0
On my system, this file exists however: ~/.config/ibus/bus/4f3998ea7a9f475ba39f34f9429ce700-unix-wayland-0

If I override it using the IBUS_ADDRESS environment variable, it works as expected.

Environment details

kitty 0.27.0 () created by Kovid Goyal
Linux peelz-pc 6.1.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 01 Feb 2023 17:07:39 +0000 x86_64
Arch Linux 6.1.9-arch1-1 (/dev/tty)

Running under: X11
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/peelz/.config/kitty/kitty.conf

Config options different from defaults:
active_tab_font_style (False, False)
cursor_blink_interval 0.0
enable_audio_bell     False
font_size             14.0
linux_display_server  x11
tab_bar_style         separator
tab_separator         ┇
Removed mouse actions:
	middle release ungrabbed →  paste_from_selection
Changed shortcuts:
	kitty_mod+0 →  change_font_size all 0
	shift+insert →  paste_from_clipboard
Colors:
	background            #191919   
	color0                #191919   
	color1                #f3005f   
	color10               #97e023   
	color11               #dfd561   
	color12               #9c64fe   
	color13               #f3005f   
	color14               #57d1ea   
	color15               #f6f6ee   
	color2                #97e023   
	color3                #fa8419   
	color4                #9c64fe   
	color5                #f3005f   
	color6                #57d1ea   
	color7                #c4c4b5   
	color8                #615e4b   
	color9                #f3005f   
	cursor                #f6f6ec   
	foreground            #c4c4b5   
	selection_background  #343434   
	selection_foreground  #191919   

Important environment variables seen by the kitty process:
	PATH                                /home/peelz/.local/bin:/home/peelz/.local/bin:/home/peelz/.local/bin:/home/peelz/.nvm/versions/node/v18.13.0/bin:/home/peelz/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/home/peelz/.dotnet/tools:/usr/local/sbin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/peelz/.dotnet/tools:/home/peelz/.dotnet/tools
	LANG                                en_CA.UTF-8
	EDITOR                              nvim
	SHELL                               /usr/bin/zsh
	GLFW_IM_MODULE                      ibus
	DISPLAY                             :0
	WAYLAND_DISPLAY                     wayland-0
	USER                                peelz
	XDG_DATA_DIRS                       /home/peelz/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_CURRENT_DESKTOP                 GNOME
	XDG_MENU_PREFIX                     gnome-
	XDG_SESSION_CLASS                   user
	XDG_SESSION_DESKTOP                 gnome
	XDG_SESSION_TYPE                    wayland

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions