ubuntu-22.04.3-desktop-amd64/casper/filesystem/etc/profile.d/im-config_wayland.sh

17 lines
376 B
Bash

# /etc/profile.d/im-config_wayland.sh
#
# This sets the IM variables on Wayland.
if [ "$XDG_SESSION_TYPE" != 'wayland' ]; then
return
fi
# don't do anything if im-config was removed but not purged
if [ ! -r /usr/share/im-config/xinputrc.common ]; then
return
fi
if [ -r /etc/X11/Xsession.d/70im-config_launch ]; then
. /etc/X11/Xsession.d/70im-config_launch
fi