Bug 2324342
| Summary: | XDG_SESSION_TYPE maybe missing or incorrectly set to “wayland” | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike FABIAN <mfabian> |
| Component: | imsettings | Assignee: | Akira TAGOH <tagoh> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 41 | CC: | i18n-bugs, kevin, mfabian, nonamedotc, tagoh |
| Target Milestone: | --- | Flags: | tagoh:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | imsettings-1.8.10-1.fc42 imsettings-1.8.10-1.fc41 imsettings-1.8.10-1.fc40 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-12-17 13:19:51 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mike FABIAN
2024-11-07 10:48:48 UTC
I did not manually start ibus, just start the session and ibus started automatically. Probably because of ~/.config/imsettings/xinputrc Somehow it seems to start too early, before the XDG variables are correctly set. Or the XDG variables are set to late ...
imsettings is installed and the log file contents are:
mfabian@f41:~$ rpm -q imsettings
imsettings-1.8.9-2.fc41.x86_64
mfabian@f41:~$ less ~/.cache/imsettings/log
[ 27.501065]: GLib-GIO[6208]: DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBacken
d) for 'gsettings-backend'
[ 27.501510]: GLib-GIO[6208]: DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GD
Bus < 2.73.3)
imsettings information
==========================
XINPUTRC: /home/mfabian/.config/imsettings/xinputrc
File: /home/mfabian/.config/imsettings/xinputrc -> /etc/X11/xinit/xinput.d/ibus.conf
Size: 33 Blocks: 8 IO Block: 4096 symbolic link
Device: 0,50 Inode: 8932 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 1000/ mfabian) Gid: ( 1000/ mfabian)
Context: unconfined_u:object_r:config_home_t:s0
Access: 2024-11-06 12:11:59.023615313 +0100
Modify: 2024-10-28 19:59:52.342644651 +0100
Change: 2024-10-28 19:59:52.342644651 +0100
Birth: 2024-10-28 19:59:52.342644651 +0100
Is DBus enabled: yes
Is imsettings enabled: yes
Is GTK+ supported: no
Is Qt supported: no
Is Action needed: yes
DESKTOP: XFCE
GUESS_DESKTOP: $XDG_CURRENT_DESKTOP
DISABLE_IMSETTINGS:
IMSETTINGS_DISABLE_DESKTOP_CHECK:
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
GTK_IM_MODULE: ibus
QT_IM_MODULE: ibus
XMODIFIERS: @im=ibus
IMSETTINGS_MODULE: IBus
IMSETTINGS_INTEGRATE_DESKTOP: yes
IMSETTINGS_DISABLE_SYS_XINPUTRC: no
IMSETTINGS_DISABLE_USER_XINPUTRC: no
IMSETTINGS_IGNORE_SESSION: KDE-wayland
[ 28.609198]: IMSettings-Daemon[6208]: WARNING **: Child process exited with code 1
[ 28.621743]: IMSettings-Daemon[6208]: INFO: X Display is available
[ 29.504001]: IMSettings-Daemon[6208]: INFO: Attempting to switch IM to IBus [lang=en_US.UTF-8, desktop=XFCE, update=f
alse]
[ 29.872747]: IMSettings-Daemon[6208]: WARNING **: Child process exited with code 1
[ 29.873196]: IMSettings-Daemon[6208]: INFO: no need to invoke any auxiliary process for IBus
[ 29.873217]: IMSettings-Daemon[6208]: INFO: Starting the main process for IBus [lang:en_US.UTF-8]
[ 29.875730]: IMSettings-Daemon[6208]: INFO: Started IBus: [process: /usr/bin/ibus-daemon -r --xim, lang: en_US.UTF-
8, pid: 7456, id: 31, time: 2024-11-07T11:32:29.875712+01
[ 29.875835]: IMSettings-GSettings backend[6208]: INFO: Setting up ibus:xim as gtk+ immodule
[ 30.259198]: IBus[7456]: ibus-m17n-Message: 11:32:30.255: skipped m17n:ko:han2 since its rank is lower than 0
[ 30.259466]: IBus[7456]: ibus-m17n-Message: 11:32:30.259: skipped m17n:ko:romaja since its rank is lower than 0
The environment of imsettigns-daemon is: mfabian@f41:~$ ps aux | grep imsettings-daemon mfabian 6208 0.0 0.2 535056 9000 ? Ssl 11:32 0:00 /usr/libexec/imsettings-daemon mfabian 8099 0.0 0.0 230468 2356 pts/0 S+ 11:59 0:00 grep --color=auto imsettings-daemon mfabian@f41:~$ cat /proc/6208/environ | tr '\0' '\n' | grep XDG XDG_DATA_DIRS=/home/mfabian/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_RUNTIME_DIR=/run/user/1000 XDG_CACHE_HOME=/home/mfabian/.cache XDG_CONFIG_DIRS=/etc/xdg XDG_CONFIG_HOME=/home/mfabian/.config XDG_CURRENT_DESKTOP=GNOME XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/mfabian XDG_MENU_PREFIX=gnome- XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=gnome XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=wayland mfabian@f41:~$ Which is wrong because it is not a Gnome Wayland session anymore. That was the previous session, now XFCE is running. To be able to test this at all I had to use lightdm instead of gdm because of https://bugzilla.redhat.com/show_bug.cgi?id=2237652 So I did: mfabian@f41:~$ sudo dnf install lightdm lightdm-gtk Updating and loading repositories: Repositories loaded. Package "lightdm-1.32.0-11.fc41.x86_64" is already installed. Package "lightdm-gtk-2.0.8-10.fc41.x86_64" is already installed. Nothing to do. mfabian@f41:~$ sudo systemctl disable gdm --now Removed '/etc/systemd/system/display-manager.service'. mfabian@f41:~$ sudo systemctl enable lightdm --now and then did the above tests. I tested with imsettings-1.8.9-2.1.fc41.x86_64 from https://copr.fedorainfracloud.org/coprs/tagoh/imsettings/ and it fixes the problem. imsettings-daemon still has XDG_SESSION_TYPE=wayland in its environment after switching from Gnome Wayland to XFCE, but it passes the correct value XDG_SESSION_TYPE=x11 to ibus-daemon which fixes the problem. FEDORA-2024-22d0bf4968 (imsettings-1.8.10-1.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-22d0bf4968 FEDORA-2024-22d0bf4968 (imsettings-1.8.10-1.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-9c1899392e (imsettings-1.8.10-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-9c1899392e FEDORA-2024-ad5fb2660e (imsettings-1.8.10-1.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-ad5fb2660e FEDORA-2024-ad5fb2660e has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-ad5fb2660e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-ad5fb2660e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-9c1899392e has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-9c1899392e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-9c1899392e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-ad5fb2660e (imsettings-1.8.10-1.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-9c1899392e (imsettings-1.8.10-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. |