"ibus-daemon" and X11 clients startup

455 views
Skip to first unread message

beroal

unread,
Dec 4, 2015, 2:53:36 AM12/4/15
to ibus-user
Hello. I have an issue described in https://groups.google.com/d/topic/ibus-user/K-C5uuv_rwc/discussion . Namely, when I restart the Xorg server, "ibus-ui-gtk3" and "ibus-x11" terminate and I see no IBus icon.

"ibus-x11" runs with the switch "--kill-daemon". If I run "killall ibus-x11", "ibus-daemon" terminates. If I restart the Xorg server, "ibus-daemon" does not terminate. It seems like a bug in "ibus-x11". Should I file it?

So I decided to start "ibus-daemon" properly. If I understand it correctly, I should start "ibus-daemon", "/usr/lib/ibus/ibus-ui-gtk3", and "/usr/lib/ibus/ibus-x11" with the Xorg server. If "ibus-daemon" is already running, the command "ibus-daemon" just exits with an error, it's okay. The problem is that "ibus-daemon" starts "ibus-ui-gtk3" by itself, so I see 2 IBus icons. If I run "ibus-daemon --panel=", "ibus-daemon" does not start "ibus-ui-gtk3", but I am afraid it's not the intended usage. How do I disable starting "ibus-ui-gtk3"?

Takao Fujiwara

unread,
Dec 4, 2015, 3:16:08 AM12/4/15
to ibus...@googlegroups.com
On Fri, Dec 4, 2015 at 4:53 PM, beroal <rabe...@gmail.com> wrote:
> Hello. I have an issue described in
> https://groups.google.com/d/topic/ibus-user/K-C5uuv_rwc/discussion . Namely,
> when I restart the Xorg server, "ibus-ui-gtk3" and "ibus-x11" terminate and
> I see no IBus icon.
>
> "ibus-x11" runs with the switch "--kill-daemon". If I run "killall
> ibus-x11", "ibus-daemon" terminates. If I restart the Xorg server,
> "ibus-daemon" does not terminate. It seems like a bug in "ibus-x11". Should
> I file it?

How do you resart Xorg server?
Which desktop, GNOME3 or Plasma5 do you use?

>
> So I decided to start "ibus-daemon" properly. If I understand it correctly,
> I should start "ibus-daemon", "/usr/lib/ibus/ibus-ui-gtk3", and
> "/usr/lib/ibus/ibus-x11" with the Xorg server. If "ibus-daemon" is already
> running, the command "ibus-daemon" just exits with an error, it's okay. The
> problem is that "ibus-daemon" starts "ibus-ui-gtk3" by itself, so I see 2
> IBus icons. If I run "ibus-daemon --panel=", "ibus-daemon" does not start
> "ibus-ui-gtk3", but I am afraid it's not the intended usage. How do I
> disable starting "ibus-ui-gtk3"?

ibus-daemon --panel disable

beroal

unread,
Dec 4, 2015, 3:25:35 AM12/4/15
to ibus-user
"systemctl restart slim-vt-5". That SystemD service starts SLiM which starts the Xorg server. Killing the Xorg server or typing "exit" into the SLiM login screen has the same effect.

How do you resart Xorg server?

XFCE
Which desktop, GNOME3 or Plasma5 do you use?

Thanks.
ibus-daemon --panel disable

Takao Fujiwara

unread,
Dec 7, 2015, 1:47:33 AM12/7/15
to ibus...@googlegroups.com
On Fri, Dec 4, 2015 at 5:25 PM, beroal <rabe...@gmail.com> wrote:
> "systemctl restart slim-vt-5". That SystemD service starts SLiM which starts
> the Xorg server. Killing the Xorg server or typing "exit" into the SLiM
> login screen has the same effect.
>>
>> How do you resart Xorg server?

Where did you get slim-vt-5.service ?

I enabled slim.service in Fedora and loggin out the XFCE session or
running 'systemctl restart slim.service' can exit ibus-daemon.

beroal

unread,
Dec 7, 2015, 8:28:22 AM12/7/15
to ibus-user

 I wrote "slim-vt-5.service" myself. I also use patched SLiM. It's a long story. I would stick to testing it with "kill Xorg".

Takao Fujiwara

unread,
Dec 7, 2015, 9:08:51 PM12/7/15
to ibus...@googlegroups.com
Can you provide the content of the script exactly?

beroal

unread,
Dec 8, 2015, 5:25:41 AM12/8/15
to ibus-user
$ cat /etc/systemd/system/slim-vt-5.service
[Unit]
Description=SLiM Simple Login Manager
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/slim -nodaemon -c /etc/systemd/system/slim-vt-5.conf
Restart=always

[Install]
WantedBy=graphical.target

$ cat /etc/systemd/system/slim-vt-5.conf
display_name :0
xserver_arguments -nolisten tcp -layout Layout0 vt05
lockfile /var/lock/slim-vt-5.lock
authfile /var/run/slim-vt-5.auth
default_user user

Takao Fujiwara

unread,
Dec 9, 2015, 5:35:03 AM12/9/15
to ibus...@googlegroups.com
My slim does not have '-c' option so I copied slim-vt-5.conf to
/etc/slim.conf and deleted '-c' in slim-vt-5.service .
(I think '-c' means your patched slim)
My slim is not launched with your slim.conf and I added the following
line in slim.conf :

login_cmd if [ -r ~/.xinitrc ]; then exec /bin/bash -login
~/.xinitrc %session; else PREFERRED=%session exec /bin/bash -login
/etc/X11/xinit/xinitrc; fi

I replaced 'user' with my account in slim.conf

When I run 'systemctl start slim-vt-5', the login screen is shown
with my account.
After I typed my password, xfce4 session and ibus-daemon is started.
When I run 'systemctl restart slim-vt-5', the session is closed and
ibus-daemon also exited and the login screen is shown again.
After I typed my password, xfce4 session and ibus-daemon is started again.
Reply all
Reply to author
Forward
0 new messages