Bug 2023222 - ibus cannot open display via imsettings in Plasma Wayland
Summary: ibus cannot open display via imsettings in Plasma Wayland
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: imsettings
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-15 09:06 UTC by fujiwara
Modified: 2021-12-12 01:09 UTC (History)
3 users (show)

Fixed In Version: imsettings-1.8.3-1.fc36 imsettings-1.8.3-1.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-30 06:11:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description fujiwara 2021-11-15 09:06:13 UTC
Description of problem:
im-chooser can launch imsettings-daemon and ibus-daemon and imsettings-daemon launches ibus-daemon again when user log into the Plasma Wayland session but ibus-ui-gtk3 fails to be launched because ibus-ui-gtk3 fails to open Display with XOpenDisplay(NULL) via imsettings-daemon while I confirmed ibus-ui-gtk3 got DISPLAY=:0 environment variable.

If I invoke ibus-daemon by manual ibus-daemon can launch ibus-ui-gtk3 successfully so this issue would be imsettings in Plasma Wayland.

Version-Release number of selected component (if applicable):
imsettings-1.8.2-4.fc35.x86_64
ibus-1.5.25-4.fc35.x86_64
plasma-workspace-wayland-5.22.5-2.fc35.x86_64

How reproducible:


Steps to Reproduce:
1. Log into Plasma Wayland session
2. Run im-chooser and select IBus and ibus-daemon runs
3. Log out the session and imsettings-daemon is still running
4. Log into Plasma Wayland session again

or

5. Run im-chooser again and select IBus -> No input method -> IBus

Actual results:
ibus-ui-gtk3 and ibus-x11 are not running and no IBus panel icon in the Plasma desktop


Expected results:
ibus-ui-gtk3 and ibus-x11 are running and users can switch IBus engines from IBus panel icon in the Plasma desktop


Additional info:
I'm thinking to launch imsettings-daemon from /usr/libexec/plasma-dbus-run-session-if-needed until Plasma Wayland can manage IBus input contexts with D-Bus likes GNOME Wayland so I'm fine to terminate imsettings-daemon by logging out the desktop session.

--- /usr/libexec/plasma-dbus-run-session-if-needed.orig07:11:14.936606871 +0900
+++ /usr/libexec/plasma-dbus-run-session-if-needed
@@ -2,6 +2,10 @@
 # Usage: plasma-dbus-run-session-if-needed PROGRAM [ARGUMENTS]
 # If the session bus is not available it is spawned and wrapper round our program
 # Otherwise we spawn our program directly
+if [ -x /usr/libexec/xinput-run-in-session ] ; then
+    nohup /usr/libexec/xinput-run-in-session &
+fi
+
 drs=
 if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]
 then


# cat /usr/libexec/xinput-run-in-session
#!/bin/sh

# Wait for running a desktop session with D-Bus
sleep 180

if [ -x /etc/X11/xinit/xinitrc.d/50-xinput.sh ] ; then
    /etc/X11/xinit/xinitrc.d/50-xinput.sh
    ibus exit
    imsettings-switch -n -q -x
fi

Comment 1 Fedora Update System 2021-11-30 06:09:17 UTC
FEDORA-2021-1ea8aa849a has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1ea8aa849a

Comment 2 Fedora Update System 2021-11-30 06:11:39 UTC
FEDORA-2021-1ea8aa849a has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2021-11-30 06:27:05 UTC
FEDORA-2021-4b6ac2051d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4b6ac2051d

Comment 4 Fedora Update System 2021-12-01 01:36:41 UTC
FEDORA-2021-4b6ac2051d has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4b6ac2051d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4b6ac2051d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-12-03 08:34:07 UTC
FEDORA-2021-4b6ac2051d has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4b6ac2051d

Comment 6 Fedora Update System 2021-12-04 01:23:33 UTC
FEDORA-2021-4b6ac2051d has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4b6ac2051d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4b6ac2051d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-12-12 01:09:56 UTC
FEDORA-2021-4b6ac2051d has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.