BUG - plex linux app fails to start when 3 or more keyboard layouts are configured

Same here for me on the latest Fedora 40:

plex-desktop 
qt.scenegraph.general: Using QRhi with backend OpenGL
  Graphics API debug/validation layers: 0
  QRhi profiling and debug markers: 0
  Shader/pipeline cache collection: 0
qt.scenegraph.general: Using QRhi with backend OpenGL
  Graphics API debug/validation layers: 0
  QRhi profiling and debug markers: 0
  Shader/pipeline cache collection: 0
xkbcommon: ERROR: Couldn't process include statement for 'us(phonetic)'
xkbcommon: ERROR: Abandoning symbols file "(unnamed)"
xkbcommon: ERROR: Failed to compile xkb_symbols
xkbcommon: ERROR: Failed to compile keymap
[1965386:1965423:1227/173720.357063:FATAL:xkb_keyboard_layout_engine.cc(640)] Keymap file failed to load: us-phonetic
Trace/breakpoint trap (core dumped)

The issue is quite similar to this one reported in Viber:

These are my current layouts:

setxkbmap -query
rules:      evdev
model:      pc105
layout:     us,bg
variant:    ,phonetic
options:    grp:lalt_lshift_toggle

I’ll add an additional space prior the comma in the variants:

setxkbmap -layout ‘us,bg’ -variant ’ ,phonetic’ -option ‘grp:lalt_lshift_toggle’

So it becomes:

setxkbmap -query
rules:      evdev
model:      pc105
layout:     us,bg
variant:     ,phonetic
options:    grp:lalt_lshift_toggle

And it runs fine afterwards.

plex-desktop 
qt.scenegraph.general: Using QRhi with backend OpenGL
  Graphics API debug/validation layers: 0
  QRhi profiling and debug markers: 0
  Shader/pipeline cache collection: 0
qt.scenegraph.general: Using QRhi with backend OpenGL
  Graphics API debug/validation layers: 0
  QRhi profiling and debug markers: 0
  Shader/pipeline cache collection: 0
1 Like