You are not logged in.

#1 2020-03-31 11:10:29

mayagamer
Member
Registered: 2020-02-18
Posts: 18

[SOLVED] Ibus fails to start

Hi guys!

After uninstalling an old input-method(ibus-pinyin) and installing a new one(ibus-libpinyin), ibus doesn't automatically start when I log in GNOME anymore.
I tried IBus#Initial_setup and IBus#Chinese_input, but both don't work.
Here are some logs related to ibus from Logs app(ignored duplicated ones):

Time: 18:38:11
Message: Not connected to the ibus bus
Priority: 4
Sender: dbus-daemon
Time: 18:38:11
Message: [session uid=1000 pid=578] Activated service 'org.freedesktop.portal.IBus' failed: Process org.freedesktop.portal.IBus exited with status 1
Audit Session: 2
Priority: 6
Sender: dbus-daemon
Time: 18:38:11
Message: [session uid=1000 pid=578] Activating service name='org.freedesktop.portal.IBus' requested by ':1.20' (uid=1000 pid=671 comm="ibus-daemon --panel disable ")
Audit Session: 2
Priority: 6
Sender: ibus-daemon
Time: 18:38:11
Message: portal is not running: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.portal.IBus exited with status 1
Audit Session: 2
Priority: 6
Sender: dbus-daemon
Time: 18:38:11
Message: [session uid=1000 pid=578] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.20' (uid=1000 pid=671 comm="ibus-daemon --panel disable ")
Audit Session: 2
Priority: 6

How can I get it work as before?

Thanks a lot!

Last edited by mayagamer (2020-04-06 02:58:16)

Offline

#2 2020-04-01 14:08:54

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] Ibus fails to start

Sorry, I forgot to mention that if I add lines below to ~/.bashrc, input method seams working only on Terminal. And after opening Terminal, if I restart Firefox and other applications, input method works for them.

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx

Help me please, thanks in advance!

Offline

#3 2020-04-01 19:43:06

liewkj
Member
Registered: 2019-07-08
Posts: 210

Re: [SOLVED] Ibus fails to start

https://bugs.archlinux.org/task/65883
You must be running Wayland session, otherwise Xorg does not have the problem with ibus-daemon.

Offline

#4 2020-04-02 10:38:20

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] Ibus fails to start

liewkj wrote:

https://bugs.archlinux.org/task/65883
You must be running Wayland session, otherwise Xorg does not have the problem with ibus-daemon.

Yes, you are right. Just as wiki recommended. So does that mean no solution until IBus package updates?

Last edited by mayagamer (2020-04-02 10:44:14)

Offline

#5 2020-04-02 21:35:54

liewkj
Member
Registered: 2019-07-08
Posts: 210

Re: [SOLVED] Ibus fails to start

mayagamer wrote:

So does that mean no solution until IBus package updates?

Since the fix is known and patch available, you could just grab the PKGBUILD source file and rebuild the package with the fix. It is not a huge package like Chromium or Firefox, the build can be done in minutes on typical desktop/laptop.

Offline

#6 2020-04-03 14:06:23

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] Ibus fails to start

I'm really a newbie about this kind tricks XD. After a long "research time", I git clone the source and "make install" from it just as the IBus docs says. Failed many times, then downloaded some files to some child directories of  /usr/share/unicode, and then "make install" one more time. Finally, it works now!
btw, I really can't find the right way to use PKGBUILD, but still a lot thanks to liewkj!

Offline

#7 2020-04-03 15:20:47

loqs
Member
Registered: 2014-03-06
Posts: 19,078

Re: [SOLVED] Ibus fails to start

For PKGBUILD see makepkg and patching packages.

Offline

#8 2020-04-03 20:44:40

liewkj
Member
Registered: 2019-07-08
Posts: 210

Re: [SOLVED] Ibus fails to start

mayagamer wrote:

I git clone the source and "make install" from it just as the IBus docs says. Failed many times, then downloaded some files to some child directories of  /usr/share/unicode, and then "make install" one more time.

You should really refrain from doing that unless it is absolutely necessary and you really know and able to track what you are doing. Now, you may left strayed files somewhere and who knows if they will cause any troubles with future upgrades. For those who keep on doing that and yet keep on complaining things don't work out for them, it is really their problem to begin with.

mayagamer wrote:

I really can't find the right way to use PKGBUILD.

For the many years of experience with Ubuntu, I had never learned to create a .deb. It wasn't that I didn't want to but the details were just too much to follow. I don't know if this is still true today, but they have PPAs sprouting everywhere which most people would go for. The moment I switched to ArchLinux, the pacman/makepkg/PKGBUILD system is so simple and straight-forward.

If you hope for a better experience with ArchLinux, then you should really know how to makepkg.

Offline

#9 2020-04-04 03:17:35

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] Ibus fails to start

yikes Oh my god, I didn't know that.  I will try to follow these links loqs posted. But for now how can I find and clean the strayed files?

Offline

#10 2020-04-04 03:58:22

liewkj
Member
Registered: 2019-07-08
Posts: 210

Re: [SOLVED] Ibus fails to start

mayagamer wrote:

how can I find and clean the strayed files?

If you still remember what you have done, then just reverse that. For eg. if you copied a file to somewhere manually, then just delete it. This is the best way but it requires that you remember the stuffs you have done. Otherwise, what follow next are only best efforts.
Most of the time, a "make uninstall" can do proper clean up for you.
Lastly, you can reinstall the same package with "# pacman -Su" or your own built package from PKGBUILD/makepkg with "# pacman -U". Pacman installation can detect file conflicts, list the files and installation will fail. Then you can remove the strayed files manually. This may not work reliably if you had an installation prefix that was different from the official package.

Last edited by liewkj (2020-04-04 03:59:52)

Offline

#11 2020-04-05 11:19:55

mayagamer
Member
Registered: 2020-02-18
Posts: 18

Re: [SOLVED] Ibus fails to start

Thank you again! Hope I have cleaned all of them now. big_smile

Offline

Board footer

Powered by FluxBB