You are not logged in.
Under wayland, GTK4 has some problems with the ibus input window position with GTK_IM_MOUDLE=ibus, which can be fixed by setting GTK_IM_MOUDLE=wayland, but this will make those applications running on Xwayland unable to launch, such as discord and other electron applications. So I am wondering are there some methods to set GTK_IM_MOUDLE=ibus only for those applications using Xwayland while GTK_IM_MOUDLE=wayland is set globally?
Last edited by zhaose (2023-05-07 06:49:15)
Offline
Maybe.
XWayland is started via a compositor, so you should check the documentation for your chosen compositor for XWayland compatibility and instructions on how to start XWayland.
Which wayland compositor are you using ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
These are variables used by the clients, right? So just set it in their environment, e.g.
GTK_IM_MOUDLE=ibus discord"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
These are variables used by the clients, right? So just set it in their environment, e.g.
GTK_IM_MOUDLE=ibus discord
Yeah that's a solution, but I am just wondering if there is a way to set variables for all xwayland applications rather than set it manually for each application.
Offline
Maybe.
archwiki wrote:XWayland is started via a compositor, so you should check the documentation for your chosen compositor for XWayland compatibility and instructions on how to start XWayland.
Which wayland compositor are you using ?
Mutter is the compositor for gnome.
Offline
No. They don't share an environment.
GTK may have some trick for conditionally setting the IM_MODULE, but environment variables are set within an environment - hence the name.
But if you know which progams need this setting, what's wrong with setting it for each of them?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
No. They don't share an environment.
GTK may have some trick for conditionally setting the IM_MODULE, but environment variables are set within an environment - hence the name.
But if you know which progams need this setting, what's wrong with setting it for each of them?
I thought when setting a environment for a process, it will be inheritted by its child processes, so...
But it seems that xwayland is not acting as a parent on starting applications but acting just as a server to interact with the screen, I am now awared of that it's kind of impossible.
Offline