Currently, the terminal seems to rely on DBUS_SESSION_BUS_ADDRESS for input method (IME) communication (in my case is fcitx5). This creates issues if I don't want to use input method in terminal (especially when typing sudo password), and when I unset the DBUS_SESSION_BUS_ADDRESS variable, some command might not work correctly (e.g notify-send). I think handle by XMODIFIERS/GTK_IM_MODULE/QT_IM_MODULE is better (I use Alacritty and if I want to turn off input method, I just unset XMODIFIERS and everything will work)